mirror of
https://github.com/encounter/SDL.git
synced 2025-06-06 06:33:41 +00:00
Controllers are always centered at zero using XInput and WGI
This commit is contained in:
parent
aa1d76e829
commit
a6cbe0ab87
@ -343,6 +343,9 @@ SDL_JoystickGetDevicePlayerIndex(int device_index)
|
|||||||
static SDL_bool
|
static SDL_bool
|
||||||
SDL_JoystickAxesCenteredAtZero(SDL_Joystick *joystick)
|
SDL_JoystickAxesCenteredAtZero(SDL_Joystick *joystick)
|
||||||
{
|
{
|
||||||
|
#ifdef __WINRT__
|
||||||
|
return SDL_TRUE;
|
||||||
|
#else
|
||||||
static Uint32 zero_centered_joysticks[] = {
|
static Uint32 zero_centered_joysticks[] = {
|
||||||
MAKE_VIDPID(0x0e8f, 0x3013), /* HuiJia SNES USB adapter */
|
MAKE_VIDPID(0x0e8f, 0x3013), /* HuiJia SNES USB adapter */
|
||||||
MAKE_VIDPID(0x05a0, 0x3232), /* 8Bitdo Zero Gamepad */
|
MAKE_VIDPID(0x05a0, 0x3232), /* 8Bitdo Zero Gamepad */
|
||||||
@ -365,6 +368,7 @@ SDL_JoystickAxesCenteredAtZero(SDL_Joystick *joystick)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return SDL_FALSE;
|
return SDL_FALSE;
|
||||||
|
#endif /* __WINRT__ */
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user