public class XInputButtonsDelta extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
XInputButtonsDelta(XInputButtons lastButtons,
XInputButtons buttons) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isPressed(XInputButton button)
Returns
true if the button was pressed (i.e. changed from released to pressed between two consecutive polls). |
boolean |
isReleased(XInputButton button)
Returns
true if the button was released (i.e. changed from pressed to released between two consecutive polls). |
protected XInputButtonsDelta(XInputButtons lastButtons, XInputButtons buttons)
public boolean isPressed(XInputButton button)
true if the button was pressed (i.e. changed from released to pressed between two consecutive polls).button - the buttontrue if the button was pressed, false otherwisepublic boolean isReleased(XInputButton button)
true if the button was released (i.e. changed from pressed to released between two consecutive polls).button - the buttontrue if the button was released, false otherwiseCopyright © 2018. All rights reserved.