Merge pull request #39116 from Calinou/tweak-failed-dinput-message

Tweak the DirectInput initialization failure message
This commit is contained in:
Rémi Verschelde 2020-05-28 11:04:33 +02:00 committed by GitHub
commit 055624d94b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();
}