메소드 | 설명 | |
---|---|---|
AllKeysDown ( ) : bool |
Checks if all of the keys specified are down
|
|
AnyKeysDown ( ) : bool |
Checks if any of the keys specified are down
|
|
AnyKeysPressed ( ) : bool |
Checks if any of the keys specified are pressed/toggled
|
|
GetDigitPressed ( ) : int |
Gets the current number key pressed, returns -1 if none
|
|
InputHandler ( ) : System |
Creats a new InputHandler
|
|
IsKeyDown ( Keys key ) : bool |
Checks if a given key is currently down
|
|
IsKeyPressed ( Keys key ) : bool |
Checks if a given key is currently being pressed (Was not pressed last state, but now is)
|
|
IsKeyUp ( Keys key ) : bool |
Checks if a given key is currently up
|
|
IsLeftClicked ( ) : bool |
Checks if the left button is being clicked (Currently is down, wasn't last frame)
|
|
IsLeftDown ( ) : bool |
Checks if the left button is being held down
|
|
IsLeftUp ( ) : bool |
Checks if the left button is currently up
|
|
IsRightClicked ( ) : bool |
Checks if the right button is being clicked (Currently is down, wasn't last frame)
|
|
IsRightDown ( ) : bool |
Checks if the right button is being held down
|
|
IsRightUp ( ) : bool |
Checks if the right button is currently up
|
|
Update ( ) : void |
Updates the input states
|
|
WasAllKeysUp ( ) : bool |
Checks if all of the keys specified were up last frame
|
|
WasAnyKeysDown ( ) : bool |
Checks if any of the keys specified were down last frame
|
|
WasKeyDown ( Keys key ) : bool |
Checks if a given key is was down last frame
|
|
WasKeyPressed ( Keys key ) : bool |
Checks if a given key has been toggled (Was pressed last state, but now isn't)
|
|
WasKeyUp ( Keys key ) : bool |
Checks if a given key is was up last frame
|
|
WereAnyKeysUp ( ) : bool |
Checks if any of the keys specified were up the last frame
|