| Modifier and Type | Field and Description |
|---|---|
protected boolean[] |
key_mask |
| Constructor and Description |
|---|
KeyHandler() |
| Modifier and Type | Method and Description |
|---|---|
boolean[] |
getMask() |
abstract void |
keyPressed(java.awt.event.KeyEvent e)
Manages KeyPressed events
|
abstract void |
keyReleased(java.awt.event.KeyEvent e)
Manages keyReleased events
|
void |
reset(int playerID) |
void |
resetAll() |
void |
setAction(Types.ACTIONS action,
int idx) |
void |
setMask(int playerID) |
public boolean[] getMask()
public void resetAll()
public void reset(int playerID)
public void setAction(Types.ACTIONS action, int idx)
public void setMask(int playerID)
public abstract void keyPressed(java.awt.event.KeyEvent e)
keyPressed in interface java.awt.event.KeyListenerkeyPressed in class java.awt.event.KeyAdaptere - the event.public abstract void keyReleased(java.awt.event.KeyEvent e)
keyReleased in interface java.awt.event.KeyListenerkeyReleased in class java.awt.event.KeyAdaptere - the event.