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:
parent
96119b7734
commit
50ee8ecf1e
|
@ -256,8 +256,8 @@ namespace BizHawk.Client.EmuHawk
|
||||||
{
|
{
|
||||||
// OpenTK's GetAxis returns float values (as opposed to the shorts of SlimDX)
|
// OpenTK's GetAxis returns float values (as opposed to the shorts of SlimDX)
|
||||||
const float ConversionFactor = 1.0f / short.MaxValue;
|
const float ConversionFactor = 1.0f / short.MaxValue;
|
||||||
const float dzp = (short)4000 * ConversionFactor;
|
const float dzp = 20000 * ConversionFactor;
|
||||||
const float dzn = (short)-4000 * ConversionFactor;
|
const float dzn = -20000 * ConversionFactor;
|
||||||
//const float dzt = 0.6f;
|
//const float dzt = 0.6f;
|
||||||
|
|
||||||
// axis
|
// axis
|
||||||
|
@ -317,8 +317,8 @@ namespace BizHawk.Client.EmuHawk
|
||||||
{
|
{
|
||||||
// OpenTK's ThumbSticks contain float values (as opposed to the shorts of SlimDX)
|
// OpenTK's ThumbSticks contain float values (as opposed to the shorts of SlimDX)
|
||||||
const float ConversionFactor = 1.0f / short.MaxValue;
|
const float ConversionFactor = 1.0f / short.MaxValue;
|
||||||
const float dzp = (short)4000 * ConversionFactor;
|
const float dzp = 20000 * ConversionFactor;
|
||||||
const float dzn = (short)-4000 * ConversionFactor;
|
const float dzn = -20000 * ConversionFactor;
|
||||||
const float dzt = 0.6f;
|
const float dzt = 0.6f;
|
||||||
|
|
||||||
// buttons
|
// buttons
|
||||||
|
|
Loading…
Reference in New Issue