Fixed recentering triggers when the application doesn't have focus

This commit is contained in:
Sam Lantinga 2016-10-07 16:13:37 -07:00
parent 72164985b0
commit 8bc5c57d2e
3 changed files with 12 additions and 17 deletions

View file

@ -36,6 +36,7 @@ struct _SDL_Joystick
int naxes; /* Number of axis controls on the joystick */
Sint16 *axes; /* Current axis states */
Sint16 *axes_zero; /* Zero point on the axis (-32768 for triggers) */
int nhats; /* Number of hats on the joystick */
Uint8 *hats; /* Current hat states */