Package com.iizix.term
Class HostKeyEvent
java.lang.Object
com.iizix.term.HostKeyEvent
Key event for Host, like Java AWT's KeyEvent, i.e. not SWT.
- Author:
- Christopher Mindus
Field Summary
Modifier and TypeFieldDescriptionfinal boolean
The Alt key state.final boolean
The Control key state.final boolean
The Shift key state.static final int
static final int
static final int
Constructor Summary
ConstructorDescriptionHostKeyEvent
(int vk, boolean isShiftDown, boolean isControlDown, boolean isAltDown) Constructor.HostKeyEvent
(int vk, boolean isShiftDown, boolean isControlDown, boolean isAltDown, boolean isRightSide) Constructor for Right Side.Method Summary
Modifier and TypeMethodDescriptionint
getKey()
Gets the key.int
Gets the send key value, 0x1000 for right side, 0x2000 for Shift, 0x4000 for Control and 0x8000 for Alt.boolean
Checks for right side.
Field Details
VK_CONTROL
public static final int VK_CONTROL- See Also:
VK_ENTER
public static final int VK_ENTER- See Also:
VK_F4
public static final int VK_F4- See Also:
isShiftDown
public final boolean isShiftDownThe Shift key state.isControlDown
public final boolean isControlDownThe Control key state.isAltDown
public final boolean isAltDownThe Alt key state.
Constructor Details
HostKeyEvent
public HostKeyEvent(int vk, boolean isShiftDown, boolean isControlDown, boolean isAltDown) Constructor.HostKeyEvent
public HostKeyEvent(int vk, boolean isShiftDown, boolean isControlDown, boolean isAltDown, boolean isRightSide) Constructor for Right Side.
Method Details
getKey
public int getKey()Gets the key.isRightSide
public boolean isRightSide()Checks for right side.getSendKey
public int getSendKey()Gets the send key value, 0x1000 for right side, 0x2000 for Shift, 0x4000 for Control and 0x8000 for Alt.