mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-15 10:47:52 +00:00
Fixed building with GameInput v1.0
(cherry picked from commit e5d57d8ad6)
This commit is contained in:
parent
f4ddacacd0
commit
a140bba55a
1 changed files with 2 additions and 0 deletions
|
|
@ -78,6 +78,7 @@ static bool GAMEINPUT_InternalIsGamepad(const GameInputDeviceInfo *info)
|
|||
return false;
|
||||
}
|
||||
|
||||
#if GAMEINPUT_API_VERSION >= 1
|
||||
static int GetSteamVirtualGamepadSlot(const char *device_path)
|
||||
{
|
||||
int slot = -1;
|
||||
|
|
@ -87,6 +88,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);
|
||||
return slot;
|
||||
}
|
||||
#endif // GAMEINPUT_API_VERSION >= 1
|
||||
|
||||
static bool GAMEINPUT_InternalAddOrFind(IGameInputDevice *pDevice)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue