mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-25 13:51:36 +00:00
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:
parent
493466a8ec
commit
bbc8154ec7
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue