mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-17 01:11:45 +00:00
[joy] Clean up some redundant cvar flags
No need to or CVAR_NONE with other flags.
This commit is contained in:
parent
001b3eb908
commit
8a411dc120
2 changed files with 7 additions and 8 deletions
|
@ -466,12 +466,12 @@ JOY_Init_Cvars (void)
|
|||
int i;
|
||||
|
||||
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,
|
||||
CVAR_ROM, 0, "Joystick device");
|
||||
joy_enable = Cvar_Get ("joy_enable", "1", CVAR_ARCHIVE, 0,
|
||||
"Joystick enable flag");
|
||||
joy_amp = Cvar_Get ("joy_amp", "1", CVAR_NONE | CVAR_ARCHIVE, joyamp_f,
|
||||
joy_amp = Cvar_Get ("joy_amp", "1", CVAR_ARCHIVE, joyamp_f,
|
||||
"Joystick amplification");
|
||||
joy_pre_amp = Cvar_Get ("joy_pre_amp", "0.01", CVAR_NONE | CVAR_ARCHIVE,
|
||||
joy_pre_amp = Cvar_Get ("joy_pre_amp", "0.01", CVAR_ARCHIVE,
|
||||
joyamp_f, "Joystick pre-amplification");
|
||||
|
||||
Cmd_AddCommand ("in_joy", in_joy_f, "Configures the joystick behaviour");
|
||||
|
|
|
@ -353,12 +353,11 @@ void
|
|||
JOY_Init_Cvars(void)
|
||||
{
|
||||
// joystick variables
|
||||
joy_device = Cvar_Get ("joy_device", "none", CVAR_NONE | CVAR_ROM, 0,
|
||||
joy_device = Cvar_Get ("joy_device", "none", CVAR_ROM, 0,
|
||||
"Joystick device");
|
||||
joy_enable = Cvar_Get ("joy_enable", "1", CVAR_NONE | CVAR_ARCHIVE, 0,
|
||||
joy_enable = Cvar_Get ("joy_enable", "1", CVAR_ARCHIVE, 0,
|
||||
"Joystick enable flag");
|
||||
joy_sensitivity = Cvar_Get ("joy_sensitivity", "1", CVAR_NONE |
|
||||
CVAR_ARCHIVE, 0, "Joystick sensitivity");
|
||||
joy_sensitivity = Cvar_Get ("joy_sensitivity", "1", CVAR_ARCHIVE, 0, "Joystick sensitivity");
|
||||
in_joystick = Cvar_Get ("joystick", "0", CVAR_ARCHIVE, 0, "FIXME: No "
|
||||
"Description");
|
||||
joy_name = Cvar_Get ("joyname", "joystick", CVAR_NONE, 0, "FIXME: No "
|
||||
|
|
Loading…
Reference in a new issue