increase threshold of opentk gamepad (and joystick) analog -> dpad conversion. previously 12% wasn't even enough for an ANALOG DEADZONE (my joystick idles outside that range routinely), let alone a firm direction press. The old xinput gamepad threshold for this was ~60% so I made opentk match it

fixes #1961
This commit is contained in:
zeromus 2020-05-01 17:04:25 -04:00
parent 96119b7734
commit 50ee8ecf1e
1 changed files with 4 additions and 4 deletions

View File

@ -256,8 +256,8 @@ namespace BizHawk.Client.EmuHawk
{
// OpenTK's GetAxis returns float values (as opposed to the shorts of SlimDX)
const float ConversionFactor = 1.0f / short.MaxValue;
const float dzp = (short)4000 * ConversionFactor;
const float dzn = (short)-4000 * ConversionFactor;
const float dzp = 20000 * ConversionFactor;
const float dzn = -20000 * ConversionFactor;
//const float dzt = 0.6f;
// axis
@ -317,8 +317,8 @@ namespace BizHawk.Client.EmuHawk
{
// OpenTK's ThumbSticks contain float values (as opposed to the shorts of SlimDX)
const float ConversionFactor = 1.0f / short.MaxValue;
const float dzp = (short)4000 * ConversionFactor;
const float dzn = (short)-4000 * ConversionFactor;
const float dzp = 20000 * ConversionFactor;
const float dzn = -20000 * ConversionFactor;
const float dzt = 0.6f;
// buttons