rlgamekit.control
Class ActionKey
java.lang.Object
rlgamekit.control.ActionKey
public class ActionKey
- extends java.lang.Object
A key binding for a game action.
|
Constructor Summary |
ActionKey(int keyCode,
boolean needsShift,
boolean needsCtrl)
Bind this action to the given keyCode |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
ActionKey
public ActionKey(int keyCode,
boolean needsShift,
boolean needsCtrl)
- Bind this action to the given keyCode
- Parameters:
keyCode - The code to trigger this action.
getKeyCode
public int getKeyCode()
- Returns:
- The key keyCode which this action is bound to.
getNeedsShift
public boolean getNeedsShift()
- Returns:
- the needsShift
getNeedsCtrl
public boolean getNeedsCtrl()
- Returns:
- the needsCtrl
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object