--- hatari/src/includes/joy.h 2019/04/09 08:47:15 1.1.1.6 +++ hatari/src/includes/joy.h 2019/04/09 08:50:25 1.1.1.8 @@ -10,10 +10,17 @@ typedef struct { - int XPos,YPos; /* -32768...0...32767 */ + int XPos,YPos; /* the actually read axis values in range of -32768...0...32767 */ + int XAxisID,YAxisID; /* the IDs of the physical PC joystick's axis to be used to gain ST joystick axis input */ int Buttons; /* JOY_BUTTON1 */ } JOYREADING; +typedef struct +{ + char SDLJoystickName[50]; + int XAxisID,YAxisID; /* the IDs associated with a certain SDL joystick */ +} JOYAXISMAPPING; + enum { JOYSTICK_SPACE_NULL, /* Not up/down */