Typenames changed to avoid namespace conflicts (#481)
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1276 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -25,20 +25,20 @@ typedef struct _vcontrol_keypool {
|
|||||||
typedef struct _vcontrol_joystick_axis {
|
typedef struct _vcontrol_joystick_axis {
|
||||||
keybinding *neg, *pos;
|
keybinding *neg, *pos;
|
||||||
int polarity;
|
int polarity;
|
||||||
} axis;
|
} axis_type;
|
||||||
|
|
||||||
typedef struct _vcontrol_joystick_hat {
|
typedef struct _vcontrol_joystick_hat {
|
||||||
keybinding *left, *right, *up, *down;
|
keybinding *left, *right, *up, *down;
|
||||||
Uint8 last;
|
Uint8 last;
|
||||||
} hat;
|
} hat_type;
|
||||||
|
|
||||||
typedef struct _vcontrol_joystick {
|
typedef struct _vcontrol_joystick {
|
||||||
SDL_Joystick *stick;
|
SDL_Joystick *stick;
|
||||||
int numaxes, numbuttons, numhats;
|
int numaxes, numbuttons, numhats;
|
||||||
int threshold;
|
int threshold;
|
||||||
axis *axes;
|
axis_type *axes;
|
||||||
keybinding **buttons;
|
keybinding **buttons;
|
||||||
hat *hats;
|
hat_type *hats;
|
||||||
} joystick;
|
} joystick;
|
||||||
|
|
||||||
static keybinding *bindings[SDLK_LAST];
|
static keybinding *bindings[SDLK_LAST];
|
||||||
@@ -109,9 +109,9 @@ _create_joystick (int index)
|
|||||||
x->numaxes = axes;
|
x->numaxes = axes;
|
||||||
x->numbuttons = buttons;
|
x->numbuttons = buttons;
|
||||||
x->numhats = hats;
|
x->numhats = hats;
|
||||||
x->axes = vctrl_malloc (sizeof (axis) * axes);
|
x->axes = vctrl_malloc (sizeof (axis_type) * axes);
|
||||||
x->buttons = vctrl_malloc (sizeof (keybinding *) * buttons);
|
x->buttons = vctrl_malloc (sizeof (keybinding *) * buttons);
|
||||||
x->hats = vctrl_malloc (sizeof (hat) * hats);
|
x->hats = vctrl_malloc (sizeof (hat_type) * hats);
|
||||||
for (j = 0; j < axes; j++)
|
for (j = 0; j < axes; j++)
|
||||||
{
|
{
|
||||||
x->axes[j].neg = x->axes[j].pos = NULL;
|
x->axes[j].neg = x->axes[j].pos = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user