Package org.jpass.utils
Class KeyListenerUtil
java.lang.Object
org.jpass.utils.KeyListenerUtil
- All Implemented Interfaces:
com.github.kwhat.jnativehook.keyboard.NativeKeyListener
,EventListener
public class KeyListenerUtil
extends Object
implements com.github.kwhat.jnativehook.keyboard.NativeKeyListener
Class to listen for key presses using library Jnativehook
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
nativeKeyPressed
(com.github.kwhat.jnativehook.keyboard.NativeKeyEvent e) Check for key presses - <Ctrl> + B, <Ctrl> + P, <Ctrl> + D, Up, Downvoid
nativeKeyReleased
(com.github.kwhat.jnativehook.keyboard.NativeKeyEvent e) Check for key releases - <Ctrl>, B, P, DMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.github.kwhat.jnativehook.keyboard.NativeKeyListener
nativeKeyTyped
-
Constructor Details
-
KeyListenerUtil
public KeyListenerUtil()Constructor
-
-
Method Details
-
nativeKeyPressed
public void nativeKeyPressed(com.github.kwhat.jnativehook.keyboard.NativeKeyEvent e) Check for key presses - <Ctrl> + B, <Ctrl> + P, <Ctrl> + D, Up, Down- Specified by:
nativeKeyPressed
in interfacecom.github.kwhat.jnativehook.keyboard.NativeKeyListener
- Parameters:
e
- NativeKeyEvent
-
nativeKeyReleased
public void nativeKeyReleased(com.github.kwhat.jnativehook.keyboard.NativeKeyEvent e) Check for key releases - <Ctrl>, B, P, D- Specified by:
nativeKeyReleased
in interfacecom.github.kwhat.jnativehook.keyboard.NativeKeyListener
- Parameters:
e
- NativeKeyEvent
-