Skip to content

Commit

Permalink
Merge pull request #39116 from Calinou/tweak-failed-dinput-message
Browse files Browse the repository at this point in the history
Tweak the DirectInput initialization failure message
  • Loading branch information
akien-mga authored May 28, 2020
2 parents 1a53ee6 + fe09b4d commit 055624d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion platform/windows/joypad_windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 055624d

Please sign in to comment.