joy_side=Cvar_Get("joy_side","1.0",FCVAR_ARCHIVE|FCVAR_LOCALONLY,"joystick side sensitivity. Values from -1.0 to 1.0");
joy_side=Cvar_Get("joy_side","1.0",FCVAR_ARCHIVE|FCVAR_PRIVILEGED,"joystick side sensitivity. Values from -1.0 to 1.0");
joy_forward=Cvar_Get("joy_forward","1.0",FCVAR_ARCHIVE|FCVAR_LOCALONLY,"joystick forward sensitivity. Values from -1.0 to 1.0");
joy_forward=Cvar_Get("joy_forward","1.0",FCVAR_ARCHIVE|FCVAR_PRIVILEGED,"joystick forward sensitivity. Values from -1.0 to 1.0");
joy_lt_threshold=Cvar_Get("joy_lt_threshold","16384",FCVAR_ARCHIVE|FCVAR_LOCALONLY,"left trigger threshold. Value from 0 to 32767");
joy_lt_threshold=Cvar_Get("joy_lt_threshold","16384",FCVAR_ARCHIVE|FCVAR_PRIVILEGED,"left trigger threshold. Value from 0 to 32767");
joy_rt_threshold=Cvar_Get("joy_rt_threshold","16384",FCVAR_ARCHIVE|FCVAR_LOCALONLY,"right trigger threshold. Value from 0 to 32767");
joy_rt_threshold=Cvar_Get("joy_rt_threshold","16384",FCVAR_ARCHIVE|FCVAR_PRIVILEGED,"right trigger threshold. Value from 0 to 32767");
// emit a key event at 75% axis move
// emit a key event at 75% axis move
joy_side_key_threshold=Cvar_Get("joy_side_key_threshold","24576",FCVAR_ARCHIVE|FCVAR_LOCALONLY,"side axis key event emit threshold. Value from 0 to 32767");
joy_side_key_threshold=Cvar_Get("joy_side_key_threshold","24576",FCVAR_ARCHIVE|FCVAR_PRIVILEGED,"side axis key event emit threshold. Value from 0 to 32767");
joy_forward_key_threshold=Cvar_Get("joy_forward_key_threshold","24576",FCVAR_ARCHIVE|FCVAR_LOCALONLY,"forward axis key event emit threshold. Value from 0 to 32767");
joy_forward_key_threshold=Cvar_Get("joy_forward_key_threshold","24576",FCVAR_ARCHIVE|FCVAR_PRIVILEGED,"forward axis key event emit threshold. Value from 0 to 32767");
// by default, we rely on deadzone detection come from system, but some glitchy devices report false deadzones
// by default, we rely on deadzone detection come from system, but some glitchy devices report false deadzones
joy_side_deadzone=Cvar_Get("joy_side_deadzone","0",FCVAR_ARCHIVE|FCVAR_LOCALONLY,"side axis deadzone. Value from 0 to 32767");
joy_side_deadzone=Cvar_Get("joy_side_deadzone","0",FCVAR_ARCHIVE|FCVAR_PRIVILEGED,"side axis deadzone. Value from 0 to 32767");
joy_forward_deadzone=Cvar_Get("joy_forward_deadzone","0",FCVAR_ARCHIVE|FCVAR_LOCALONLY,"forward axis deadzone. Value from 0 to 32767");
joy_forward_deadzone=Cvar_Get("joy_forward_deadzone","0",FCVAR_ARCHIVE|FCVAR_PRIVILEGED,"forward axis deadzone. Value from 0 to 32767");
joy_pitch_deadzone=Cvar_Get("joy_pitch_deadzone","0",FCVAR_ARCHIVE|FCVAR_LOCALONLY,"pitch axis deadzone. Value from 0 to 32767");
joy_pitch_deadzone=Cvar_Get("joy_pitch_deadzone","0",FCVAR_ARCHIVE|FCVAR_PRIVILEGED,"pitch axis deadzone. Value from 0 to 32767");
joy_yaw_deadzone=Cvar_Get("joy_yaw_deadzone","0",FCVAR_ARCHIVE|FCVAR_LOCALONLY,"yaw axis deadzone. Value from 0 to 32767");
joy_yaw_deadzone=Cvar_Get("joy_yaw_deadzone","0",FCVAR_ARCHIVE|FCVAR_PRIVILEGED,"yaw axis deadzone. Value from 0 to 32767");
joy_axis_binding=Cvar_Get("joy_axis_binding","sfpyrl",FCVAR_ARCHIVE|FCVAR_LOCALONLY,"axis hardware id to engine inner axis binding, "
joy_axis_binding=Cvar_Get("joy_axis_binding","sfpyrl",FCVAR_ARCHIVE|FCVAR_PRIVILEGED,"axis hardware id to engine inner axis binding, "
"s - side, f - forward, y - yaw, p - pitch, r - left trigger, l - right trigger");
"s - side, f - forward, y - yaw, p - pitch, r - left trigger, l - right trigger");
joy_found=Cvar_Get("joy_found","0",FCVAR_READ_ONLY,"is joystick is connected");
joy_found=Cvar_Get("joy_found","0",FCVAR_READ_ONLY,"is joystick is connected");
// we doesn't loaded config.cfg yet, so this cvar is not archive.
// we doesn't loaded config.cfg yet, so this cvar is not archive.
// change by +set joy_index in cmdline
// change by +set joy_index in cmdline
joy_index=Cvar_Get("joy_index","0",FCVAR_READ_ONLY,"current active joystick");
joy_index=Cvar_Get("joy_index","0",FCVAR_READ_ONLY,"current active joystick");