java.lang.Object | |
↳ | com.neomades.app.KeyEvent |
Key event generated by a end-used action. Contains Key codes constants.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int |
getKeyCode()
Returns the key code.
| ||||||||||
int |
getNumber()
Returns the number corresponding to the key.
| ||||||||||
int |
getRepeatCount()
Returns the number of repeated events.
| ||||||||||
boolean |
isBack()
If the key action is corresponding to the BACK action.
| ||||||||||
boolean |
isDown()
If the key action is corresponding to the DOWN action.
| ||||||||||
boolean |
isFire()
If the key action is corresponding to the FIRE action.
| ||||||||||
boolean |
isLeft()
If the key action is corresponding to the LEFT action.
| ||||||||||
boolean |
isMenu()
If the key action is corresponding to the MENU action.
| ||||||||||
boolean |
isNum()
If the key action is corresponding to a numeric key
| ||||||||||
boolean |
isPressed()
If the key is currently pressed.
| ||||||||||
boolean |
isReleased()
If the key has been released.
| ||||||||||
boolean |
isRepeated()
If the key has been repeated.
| ||||||||||
boolean |
isRight()
If the key action is corresponding to the RIGHT action.
| ||||||||||
boolean |
isUp()
If the key action is corresponding to the UP action.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Returns the key code. It could be compared with constants
Returns the number corresponding to the key.
Returns the number of repeated events.
If the key action is corresponding to the BACK action.
If the key action is corresponding to the DOWN action.
If the key action is corresponding to the FIRE action.
If the key action is corresponding to the LEFT action.
If the key action is corresponding to the MENU action.
If the key action is corresponding to a numeric key
If the key is currently pressed.
If the key has been released.
If the key has been repeated. Repeat does not mean that the user has pressed many times on the key, but the user keep the key pressed a long time.
If the key action is corresponding to the RIGHT action.
If the key action is corresponding to the UP action.