From d814352d92e8e0c3a5157247cbf3b93b2bd3881d 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. (cherry picked from commit fe09b4d2b39d3ee351f88c604fcdda4b053475ab) --- 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 49432435b93..aeacfd174de 100644 --- a/platform/windows/joypad_windows.cpp +++ b/platform/windows/joypad_windows.cpp @@ -70,7 +70,8 @@ JoypadWindows::JoypadWindows(InputDefault *_input, HWND *hwnd) { HRESULT result; result = DirectInput8Create(GetModuleHandle(NULL), DIRECTINPUT_VERSION, IID_IDirectInput8, (void **)&dinput, NULL); 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(); }