ref: 4d547c03611410f8c6912ad8081a3718f0ad079c
parent: ba5470ce7422e54d87dfdd5b24c4e13bb58b095a
author: Simon Howard <[email protected]>
date: Mon Apr 28 17:33:21 EDT 2014
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.
--- 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;