mirror of
https://github.com/yawut/SDL.git
synced 2026-04-23 00:57:24 -05:00
*** empty log message ***
This commit is contained in:
parent
8a584472b3
commit
e8a20861dc
|
|
@ -739,12 +739,14 @@ void SDL_SYS_JoystickUpdate(SDL_Joystick *joystick)
|
|||
while (element)
|
||||
{
|
||||
value = HIDGetElementValue(device, element);
|
||||
if (value > 1) /* handle pressure-sensitive buttons */
|
||||
value = 1;
|
||||
if ( value != joystick->buttons[i] )
|
||||
SDL_PrivateJoystickButton(joystick, i, value);
|
||||
element = element->pNext;
|
||||
++i;
|
||||
}
|
||||
|
||||
|
||||
element = device->firstHat;
|
||||
i = 0;
|
||||
while (element)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user