hmi.util
Class InputState.Key

java.lang.Object
  extended by hmi.util.InputState.Key
Enclosing class:
InputState

public static class InputState.Key
extends Object

A InputState.Key defines a virtual key code and a key location. The virtual key code is just one of the java.awt.event.KeyEvent virtual key codes, like "KeyEvent.VK_UP" for the "up" cursor key. The location is a InputState defined mask, obtained by "or-in" some of the constants S, N, L, R. (The A constant is already defined as S|N|L|R)


Field Summary
private  int locationMask
           
private  int vkCode
           
 
Constructor Summary
InputState.Key(int vkCode, int locationMask)
           
 
Method Summary
 int getLocationMask()
           
 int getVkCode()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

vkCode

private int vkCode

locationMask

private int locationMask
Constructor Detail

InputState.Key

public InputState.Key(int vkCode,
                      int locationMask)
Method Detail

getVkCode

public int getVkCode()

getLocationMask

public int getLocationMask()