mirror of
https://github.com/dborth/fceugx.git
synced 2024-10-31 22:45:05 +01:00
fix controllers with no analog sticks
This commit is contained in:
parent
242395f20b
commit
997e3bc403
@ -133,6 +133,10 @@ s8 GuiTrigger::WPAD_Stick(u8 stick, int axis)
|
||||
center = js->center.x;
|
||||
}
|
||||
|
||||
if(min == max) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (pos > max) return 127;
|
||||
if (pos < min) return -128;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user