mirror of
https://github.com/dborth/vbagx.git
synced 2025-02-16 18:59:12 +01:00
fix controllers with no analog sticks
This commit is contained in:
parent
41a80cd6f9
commit
da80d9c8e8
@ -133,6 +133,10 @@ s8 GuiTrigger::WPAD_Stick(u8 stick, int axis)
|
|||||||
center = js->center.x;
|
center = js->center.x;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(min == max) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (pos > max) return 127;
|
if (pos > max) return 127;
|
||||||
if (pos < min) return -128;
|
if (pos < min) return -128;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user