mirror of
https://github.com/libretro/Play-.git
synced 2024-12-12 11:05:36 +00:00
GamePad Config: register value in the end 20% range
This commit is contained in:
parent
a08b47bef7
commit
4b91e09914
@ -45,9 +45,10 @@ void InputEventSelectionDialog::Setup(const char* text, CInputBindingManager *in
|
||||
{
|
||||
if(abs->flat)
|
||||
{
|
||||
int midVal = abs->maximum/2;
|
||||
int triggerVal = abs->maximum/10;
|
||||
if (value < midVal + triggerVal && value > midVal - triggerVal)
|
||||
int triggerRange = abs->maximum/100*20;
|
||||
int triggerVal1 = abs->maximum - triggerRange;
|
||||
int triggerVal2 = abs->minimum + triggerRange;
|
||||
if(value < triggerVal1 && triggerVal2 < value)
|
||||
{
|
||||
setCounter(0);
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user