mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-02-14 19:54:43 +01:00
Slight tweak to the controller patch, rename getEventButtonStatus() to
getEventButtonState() to make it consistent with Keyboard and Mouse classes and remove unused import.
This commit is contained in:
parent
aacd16acd1
commit
6c4de65e20
|
|
@ -31,8 +31,6 @@
|
|||
*/
|
||||
package org.lwjgl.input;
|
||||
|
||||
import org.lwjgl.Sys;
|
||||
|
||||
/**
|
||||
* An event occuring on a controller.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -269,11 +269,11 @@ public class Controllers {
|
|||
}
|
||||
|
||||
/**
|
||||
* Check the button is pressed or not at the current event
|
||||
* Gets the state of the button that generated the current event
|
||||
*
|
||||
* @return True when a button is pressed at the current event
|
||||
* @return True if button was down, or false if released
|
||||
*/
|
||||
public static boolean getEventButtonStatus() {
|
||||
public static boolean getEventButtonState() {
|
||||
return event.getButtonState();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue