mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-19 01:27:18 -04:00
Add ability to retreive gamepadButton state
This commit is contained in:
parent
b86de4db95
commit
331a637e19
@ -35,5 +35,8 @@ public class GamepadButton {
|
|||||||
public void resetButtonState(){
|
public void resetButtonState(){
|
||||||
isDown = false;
|
isDown = false;
|
||||||
}
|
}
|
||||||
|
public boolean isDown(){
|
||||||
|
return isToggleable ? toggled : isDown;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user