From fe09b4d2b39d3ee351f88c604fcdda4b053475ab Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Thu, 28 May 2020 09:45:17 +0200 Subject: [PATCH] Tweak the DirectInput initialization failure message This closes #36662. --- platform/windows/joypad_windows.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/windows/joypad_windows.cpp b/platform/windows/joypad_windows.cpp index 0cff12ca8ce..50f090d2b00 100644 --- a/platform/windows/joypad_windows.cpp +++ b/platform/windows/joypad_windows.cpp @@ -70,7 +70,8 @@ JoypadWindows::JoypadWindows(HWND *hwnd) { HRESULT result; result = DirectInput8Create(GetModuleHandle(nullptr), DIRECTINPUT_VERSION, IID_IDirectInput8, (void **)&dinput, nullptr); if (FAILED(result)) { - printf("failed init DINPUT: %ld\n", result); + printf("Couldn't initialize DirectInput: %ld\n", result); + printf("Rebooting your PC may solve this issue.\n"); } probe_joypads(); }