mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-01-31 22:00:48 +00:00
Use a better default deadzone value for Linux. Fixes uncontrollable menus
This commit is contained in:
parent
989123b5f8
commit
f6bdc02a8a
1 changed files with 3 additions and 1 deletions
|
@ -38,6 +38,8 @@
|
|||
#include "m_joy.h"
|
||||
#include "keydef.h"
|
||||
|
||||
#define DEFAULT_DEADZONE 0.25f;
|
||||
|
||||
// Very small deadzone so that floating point magic doesn't happen
|
||||
#define MIN_DEADZONE 0.000001f
|
||||
|
||||
|
@ -143,7 +145,7 @@ public:
|
|||
info.Name.Format("Axis %d", i+1);
|
||||
else
|
||||
info.Name.Format("Hat %d (%c)", (i-NumAxes)/2 + 1, (i-NumAxes)%2 == 0 ? 'x' : 'y');
|
||||
info.DeadZone = MIN_DEADZONE;
|
||||
info.DeadZone = DEFAULT_DEADZONE;
|
||||
info.Multiplier = 1.0f;
|
||||
info.Value = 0.0;
|
||||
info.ButtonValue = 0;
|
||||
|
|
Loading…
Reference in a new issue