mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-05 17:36:25 +00:00
Added SDL_JoystickGetAxisInitialState() to get a joystick axis' initial value.
This is useful for controller mapping programs to determine an axis' zero state
This commit is contained in:
@@ -31,7 +31,8 @@
|
||||
/* The SDL joystick structure */
|
||||
typedef struct _SDL_JoystickAxisInfo
|
||||
{
|
||||
Sint16 value; /* Current axis states */
|
||||
Sint16 initial_value; /* Initial axis state */
|
||||
Sint16 value; /* Current axis state */
|
||||
Sint16 zero; /* Zero point on the axis (-32768 for triggers) */
|
||||
SDL_bool has_initial_value; /* Whether we've seen a value on the axis yet */
|
||||
SDL_bool sent_initial_value; /* Whether we've sent the initial axis value */
|
||||
|
Reference in New Issue
Block a user