joystick fixes

Make /dev/input/js0 the default joy_device, and temporarily bump max
buttons to 18 (until I kill the maximums entirely)
This commit is contained in:
Jeff Teunissen 2010-12-24 02:35:21 -05:00
parent 493466a8ec
commit bbc8154ec7
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@
#include <QF/qtypes.h>
#define JOY_MAX_AXES 8
#define JOY_MAX_BUTTONS 16
#define JOY_MAX_BUTTONS 18
extern struct cvar_s *joy_device; // Joystick device name
extern struct cvar_s *joy_enable; // Joystick enabling flag

View File

@ -190,7 +190,7 @@ JOY_Init_Cvars (void)
{
int i;
joy_device = Cvar_Get ("joy_device", "/dev/js0", CVAR_NONE | CVAR_ROM, 0,
joy_device = Cvar_Get ("joy_device", "/dev/input/js0", CVAR_NONE | CVAR_ROM, 0,
"Joystick device");
joy_enable = Cvar_Get ("joy_enable", "1", CVAR_NONE | CVAR_ARCHIVE, 0,
"Joystick enable flag");