Fixed building with GameInput v1.0
This commit is contained in:
@@ -84,6 +84,7 @@ static bool GAMEINPUT_InternalIsGamepad(const GameInputDeviceInfo *info)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if GAMEINPUT_API_VERSION >= 1
|
||||||
static int GetSteamVirtualGamepadSlot(const char *device_path)
|
static int GetSteamVirtualGamepadSlot(const char *device_path)
|
||||||
{
|
{
|
||||||
int slot = -1;
|
int slot = -1;
|
||||||
@@ -93,6 +94,7 @@ static int GetSteamVirtualGamepadSlot(const char *device_path)
|
|||||||
(void)SDL_sscanf(device_path, "\\\\.\\pipe\\HID#VID_045E&PID_028E&IG_00#%*X&%*X&%*X#%d#%*u", &slot);
|
(void)SDL_sscanf(device_path, "\\\\.\\pipe\\HID#VID_045E&PID_028E&IG_00#%*X&%*X&%*X#%d#%*u", &slot);
|
||||||
return slot;
|
return slot;
|
||||||
}
|
}
|
||||||
|
#endif // GAMEINPUT_API_VERSION >= 1
|
||||||
|
|
||||||
static bool GAMEINPUT_InternalAddOrFind(IGameInputDevice *pDevice)
|
static bool GAMEINPUT_InternalAddOrFind(IGameInputDevice *pDevice)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user