in_sdl.c: raise joy_deadzone_trigger to 0.2.

Previous value of 0.001 was probably too low, may have caused
"stuck" triggers:
http://celephais.net/board/view_thread.php?id=60452&start=2935

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1439 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
Eric Wasylishen 2017-07-27 22:55:08 +00:00
parent c6b7f686c8
commit f13af4d0e5
4 changed files with 11 additions and 7 deletions

View file

@ -68,8 +68,8 @@ If your controller doesn't work you can try placing <url url="https://raw.github
<sect2>Cvars<p>
<itemize>
<item>joy_deadzone - Fraction of the stick travel to be deadzone, between 0 and 1. Default 0.2.
<item>joy_deadzone_trigger - Fraction of trigger range required to register a button press on the analog triggers, between 0 and 1. Default 0.001.
<item>joy_deadzone - Fraction of the stick travel to be deadzone, between 0 and 1. Default 0.175.
<item>joy_deadzone_trigger - Fraction of trigger range required to register a button press on the analog triggers, between 0 and 1. Default 0.2.
<item>joy_sensitivity_yaw/pitch - Max angular speed in degrees/second when looking. Defaults are 300 for yaw (turning left/right) and 150 for pitch (up/down).
<item>joy_exponent - For the look stick, the stick displacement (between 0 and 1) is raised to this power. Default is 3. A value of 1 would give a linear relationship between stick displacement and fraction of the maximum angular speed.
<item>joy_invert - Set to 1 to invert the vertical axis of the look stick.
@ -159,6 +159,7 @@ The "game" command doesn't execute quake.rc in the new game directory being swit
<sect1> Changes in 0.93.0<p>
<itemize>
<item> Raise default "joy_deadzone_trigger" cvar to 0.2.
<item> Raise console buffer size to 1MB.
<item> Raise MAX_STATIC_ENTITIES from 512 to 4096.
<item> Raise MAX_STACK_DEPTH from 32 to 64.

View file

@ -50,7 +50,7 @@ static cvar_t in_debugkeys = {"in_debugkeys", "0", CVAR_NONE};
// SDL2 Game Controller cvars
cvar_t joy_deadzone = { "joy_deadzone", "0.175", CVAR_ARCHIVE };
cvar_t joy_deadzone_trigger = { "joy_deadzone_trigger", "0.001", CVAR_ARCHIVE };
cvar_t joy_deadzone_trigger = { "joy_deadzone_trigger", "0.2", CVAR_ARCHIVE };
cvar_t joy_sensitivity_yaw = { "joy_sensitivity_yaw", "300", CVAR_ARCHIVE };
cvar_t joy_sensitivity_pitch = { "joy_sensitivity_pitch", "150", CVAR_ARCHIVE };
cvar_t joy_invert = { "joy_invert", "0", CVAR_ARCHIVE };

View file

@ -148,8 +148,8 @@ SDL is probably less buggy, but SDL2 has nicer features and smoother mouse input
<P>
<UL>
<LI>joy_deadzone - Fraction of the stick travel to be deadzone, between 0 and 1. Default 0.2.</LI>
<LI>joy_deadzone_trigger - Fraction of trigger range required to register a button press on the analog triggers, between 0 and 1. Default 0.001.</LI>
<LI>joy_deadzone - Fraction of the stick travel to be deadzone, between 0 and 1. Default 0.175.</LI>
<LI>joy_deadzone_trigger - Fraction of trigger range required to register a button press on the analog triggers, between 0 and 1. Default 0.2.</LI>
<LI>joy_sensitivity_yaw/pitch - Max angular speed in degrees/second when looking. Defaults are 300 for yaw (turning left/right) and 150 for pitch (up/down).</LI>
<LI>joy_exponent - For the look stick, the stick displacement (between 0 and 1) is raised to this power. Default is 3. A value of 1 would give a linear relationship between stick displacement and fraction of the maximum angular speed.</LI>
<LI>joy_invert - Set to 1 to invert the vertical axis of the look stick.</LI>
@ -251,6 +251,7 @@ these patched libSDL binaries may help.
<P>
<UL>
<LI> Raise default "joy_deadzone_trigger" cvar to 0.2.</LI>
<LI> Raise console buffer size to 1MB.</LI>
<LI> Raise MAX_STATIC_ENTITIES from 512 to 4096.</LI>
<LI> Raise MAX_STACK_DEPTH from 32 to 64.</LI>

View file

@ -145,11 +145,11 @@
3.2.1. Cvars
o joy_deadzone - Fraction of the stick travel to be deadzone, between
0 and 1. Default 0.2.
0 and 1. Default 0.175.
o joy_deadzone_trigger - Fraction of trigger range required to
register a button press on the analog triggers, between 0 and 1.
Default 0.001.
Default 0.2.
o joy_sensitivity_yaw/pitch - Max angular speed in degrees/second
when looking. Defaults are 300 for yaw (turning left/right) and 150
@ -296,6 +296,8 @@
6.1. Changes in 0.93.0
o Raise default "joy_deadzone_trigger" cvar to 0.2.
o Raise console buffer size to 1MB.
o Raise MAX_STATIC_ENTITIES from 512 to 4096.