Remove unused variable joy_num_axes

This commit is contained in:
Kp 2013-11-09 05:08:37 +00:00
parent c9692eadd1
commit 9b167689ba
2 changed files with 0 additions and 4 deletions

View file

@ -16,7 +16,6 @@
#include "kconfig.h"
int num_joysticks = 0;
int joy_num_axes = 0;
/* This struct is a "virtual" joystick, which includes all the axes
* and buttons of every joystick found.
@ -215,8 +214,6 @@ void joy_init()
con_printf(CON_NORMAL, "sdl-joystick: %d axes (total)\n", Joystick.n_axes);
con_printf(CON_NORMAL, "sdl-joystick: %d buttons (total)\n", Joystick.n_buttons);
}
joy_num_axes = Joystick.n_axes;
}
void joy_close()

View file

@ -24,7 +24,6 @@ struct d_event;
#define JOY_MAX_AXES (MAX_AXES_PER_JOYSTICK * MAX_JOYSTICKS)
#define JOY_MAX_BUTTONS (MAX_BUTTONS_PER_JOYSTICK * MAX_JOYSTICKS)
extern int joy_num_axes; // set to Joystick.n_axes. solve different?
extern void joy_init();
extern void joy_close();
extern void event_joystick_get_axis(struct d_event *event, int *axis, int *value);