1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-26 20:28:49 -05:00

Win32: Fix joystick error message prefix

This commit is contained in:
Camilla Berglund 2016-10-25 21:28:18 +02:00
parent 7420814fe2
commit 3d4bd9667a

View File

@ -362,14 +362,14 @@ static BOOL CALLBACK deviceCallback(const DIDEVICEINSTANCE* di, void* user)
&device, &device,
NULL))) NULL)))
{ {
_glfwInputError(GLFW_PLATFORM_ERROR, "DI: Failed to create device"); _glfwInputError(GLFW_PLATFORM_ERROR, "Win32: Failed to create device");
return DIENUM_CONTINUE; return DIENUM_CONTINUE;
} }
if (FAILED(IDirectInputDevice8_SetDataFormat(device, &_glfwDataFormat))) if (FAILED(IDirectInputDevice8_SetDataFormat(device, &_glfwDataFormat)))
{ {
_glfwInputError(GLFW_PLATFORM_ERROR, _glfwInputError(GLFW_PLATFORM_ERROR,
"DI: Failed to set device data format"); "Win32: Failed to set device data format");
IDirectInputDevice8_Release(device); IDirectInputDevice8_Release(device);
return DIENUM_CONTINUE; return DIENUM_CONTINUE;
@ -381,7 +381,7 @@ static BOOL CALLBACK deviceCallback(const DIDEVICEINSTANCE* di, void* user)
if (FAILED(IDirectInputDevice8_GetCapabilities(device, &dc))) if (FAILED(IDirectInputDevice8_GetCapabilities(device, &dc)))
{ {
_glfwInputError(GLFW_PLATFORM_ERROR, _glfwInputError(GLFW_PLATFORM_ERROR,
"DI: Failed to query device capabilities"); "Win32: Failed to query device capabilities");
IDirectInputDevice8_Release(device); IDirectInputDevice8_Release(device);
return DIENUM_CONTINUE; return DIENUM_CONTINUE;
@ -398,7 +398,7 @@ static BOOL CALLBACK deviceCallback(const DIDEVICEINSTANCE* di, void* user)
&dipd.diph))) &dipd.diph)))
{ {
_glfwInputError(GLFW_PLATFORM_ERROR, _glfwInputError(GLFW_PLATFORM_ERROR,
"DI: Failed to set device axis mode"); "Win32: Failed to set device axis mode");
IDirectInputDevice8_Release(device); IDirectInputDevice8_Release(device);
return DIENUM_CONTINUE; return DIENUM_CONTINUE;
@ -415,7 +415,7 @@ static BOOL CALLBACK deviceCallback(const DIDEVICEINSTANCE* di, void* user)
DIDFT_AXIS | DIDFT_BUTTON | DIDFT_POV))) DIDFT_AXIS | DIDFT_BUTTON | DIDFT_POV)))
{ {
_glfwInputError(GLFW_PLATFORM_ERROR, _glfwInputError(GLFW_PLATFORM_ERROR,
"DI: Failed to enumerate device objects"); "Win32: Failed to enumerate device objects");
IDirectInputDevice8_Release(device); IDirectInputDevice8_Release(device);
free(data.objects); free(data.objects);
@ -664,7 +664,7 @@ void _glfwInitJoysticksWin32(void)
NULL))) NULL)))
{ {
_glfwInputError(GLFW_PLATFORM_ERROR, _glfwInputError(GLFW_PLATFORM_ERROR,
"DI: Failed to create interface"); "Win32: Failed to create interface");
} }
} }