Skip to content

Commit

Permalink
os2/SDL_sysjoystick.c: move struct _transaxes oot of struct joystick_…
Browse files Browse the repository at this point in the history
…hwdata
  • Loading branch information
sezero committed Oct 25, 2020
1 parent bb4804b commit 257fb39
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/joystick/os2/SDL_sysjoystick.c
Expand Up @@ -126,15 +126,17 @@ typedef struct SYS_JoyData_s
static SYS_JoyData_t SYS_JoyData[MAX_JOYSTICKS];

/* Structure used to convert data from OS/2 driver format to SDL format */
struct _transaxes
{
int offset; /* Center Offset */
float scale1; /* Center to left/up Scale */
float scale2; /* Center to right/down Scale */
};

struct joystick_hwdata
{
Sint8 id;
struct _transaxes
{
int offset; /* Center Offset */
float scale1; /* Center to left/up Scale */
float scale2; /* Center to right/down Scale */
} transaxes[MAX_AXES];
struct _transaxes transaxes[MAX_AXES];
};

/* Structure used to get values from Joystick Environment Variable */
Expand Down

0 comments on commit 257fb39

Please sign in to comment.