public class MSLLKtoRKEventListener extends java.lang.Object implements LLKeyboardHookListener
InputKeysParser.antiParse(List)
,RobotKeyEvent
,
InputKeysParser
Constructor and Description |
---|
MSLLKtoRKEventListener() |
Modifier and Type | Method and Description |
---|---|
java.util.List<RobotKeyEvent> |
getKeyEvents() |
boolean |
isCapsLockOn() |
void |
onLLKeyboardHook(int code,
com.sun.jna.NativeLong wParam,
User32.KBDLLHOOKSTRUCT info)
This method will analyze each input virtual key code (MS virtual key code)
according to their key status (PRESS, RELEASE), generate a series of RobotKeyEvent and put these events in the List keyEvents. Note: RobotKeyEvent contains Java virtual key code as its key code value |
void |
resetKeyEvents()
Remove all RobotKeyEvent from the list keyEvents
|
public void onLLKeyboardHook(int code, com.sun.jna.NativeLong wParam, User32.KBDLLHOOKSTRUCT info)
onLLKeyboardHook
in interface LLKeyboardHookListener
public boolean isCapsLockOn()
public java.util.List<RobotKeyEvent> getKeyEvents()
public void resetKeyEvents()
Copyright © SAS Institute. All Rights Reserved.