2
0
Эх сурвалжийг харах

Tweak the DirectInput initialization failure message

This closes #36662.

(cherry picked from commit fe09b4d2b39d3ee351f88c604fcdda4b053475ab)
Hugo Locurcio 5 жил өмнө
parent
commit
d814352d92

+ 2 - 1
platform/windows/joypad_windows.cpp

@@ -70,7 +70,8 @@ JoypadWindows::JoypadWindows(InputDefault *_input, HWND *hwnd) {
 	HRESULT result;
 	HRESULT result;
 	result = DirectInput8Create(GetModuleHandle(NULL), DIRECTINPUT_VERSION, IID_IDirectInput8, (void **)&dinput, NULL);
 	result = DirectInput8Create(GetModuleHandle(NULL), DIRECTINPUT_VERSION, IID_IDirectInput8, (void **)&dinput, NULL);
 	if (FAILED(result)) {
 	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();
 	probe_joypads();
 }
 }