mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-11-10 15:22:20 +00:00
Fix second joystick in sdl
This commit is contained in:
parent
be1565fce3
commit
2feda0b560
1 changed files with 2 additions and 2 deletions
|
@ -827,7 +827,7 @@ static void Impl_HandleJoystickAxisEvent(SDL_JoyAxisEvent evt)
|
||||||
|
|
||||||
// Determine the Joystick IDs for each current open joystick
|
// Determine the Joystick IDs for each current open joystick
|
||||||
joyid[0] = SDL_JoystickInstanceID(JoyInfo.dev);
|
joyid[0] = SDL_JoystickInstanceID(JoyInfo.dev);
|
||||||
joyid[1] = SDL_JoystickInstanceID(JoyInfo.dev);
|
joyid[1] = SDL_JoystickInstanceID(JoyInfo2.dev);
|
||||||
|
|
||||||
evt.axis++;
|
evt.axis++;
|
||||||
event.data1 = event.data2 = event.data3 = INT32_MAX;
|
event.data1 = event.data2 = event.data3 = INT32_MAX;
|
||||||
|
@ -866,7 +866,7 @@ static void Impl_HandleJoystickButtonEvent(SDL_JoyButtonEvent evt, Uint32 type)
|
||||||
|
|
||||||
// Determine the Joystick IDs for each current open joystick
|
// Determine the Joystick IDs for each current open joystick
|
||||||
joyid[0] = SDL_JoystickInstanceID(JoyInfo.dev);
|
joyid[0] = SDL_JoystickInstanceID(JoyInfo.dev);
|
||||||
joyid[1] = SDL_JoystickInstanceID(JoyInfo.dev);
|
joyid[1] = SDL_JoystickInstanceID(JoyInfo2.dev);
|
||||||
|
|
||||||
if (evt.which == joyid[0])
|
if (evt.which == joyid[0])
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue