public class KeyboardEvent extends HookEventObject
Hook.Descriptor.KEYBOARD
hook.Constructor and Description |
---|
KeyboardEvent(java.lang.Object source,
long virtualKeyCode,
long keyInfo) |
Modifier and Type | Method and Description |
---|---|
boolean |
getPreviousState()
Specifies the previous key state.
|
int |
getRepeatCount()
Specifies the repeat count.
|
int |
getScanCode()
Specifies the scan code.
|
boolean |
getTransitionState()
Specifies the transition state.
|
long |
getVirtualKeyCode() |
boolean |
isAltPressed()
Specifies the context code.
|
boolean |
isExtendedKey()
Specifies whether the key is an extended key, such as a function key or a
key on the numeric keypad.
|
public KeyboardEvent(java.lang.Object source, long virtualKeyCode, long keyInfo)
public long getVirtualKeyCode()
public int getRepeatCount()
public int getScanCode()
public boolean isExtendedKey()
public boolean isAltPressed()
public boolean getPreviousState()
public boolean getTransitionState()