summaryrefslogtreecommitdiff
path: root/src/i_joystick.c
diff options
context:
space:
mode:
authorSimon Howard2014-04-28 21:33:21 -0400
committerSimon Howard2014-04-28 21:33:21 -0400
commit4d547c03611410f8c6912ad8081a3718f0ad079c (patch)
tree4733f736af8a5c5c7e8edcbcef054ed03f25aca5 /src/i_joystick.c
parentba5470ce7422e54d87dfdd5b24c4e13bb58b095a (diff)
downloadchocolate-doom-4d547c03611410f8c6912ad8081a3718f0ad079c.tar.gz
chocolate-doom-4d547c03611410f8c6912ad8081a3718f0ad079c.tar.bz2
chocolate-doom-4d547c03611410f8c6912ad8081a3718f0ad079c.zip
joystick: Increase 'dead zone' size.
The joystick dead zone is the range within which the joystick is interpreted as being centered. Increase this range significantly, as some controllers (eg. the PS2 controller + USB connector) can be very sensitive, leading to the player spinning randomly even when the stick is centered.
Diffstat (limited to 'src/i_joystick.c')
-rw-r--r--src/i_joystick.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/i_joystick.c b/src/i_joystick.c
index d61d6260..c363cfaa 100644
--- a/src/i_joystick.c
+++ b/src/i_joystick.c
@@ -41,7 +41,7 @@
// When an axis is within the dead zone, it is set to zero.
// This is 5% of the full range:
-#define DEAD_ZONE (32768 / 20)
+#define DEAD_ZONE (32768 / 3)
static SDL_Joystick *joystick = NULL;