Module com.github.kwhat.jnativehook
Interface NativeKeyListener
-
- All Superinterfaces:
EventListener
- All Known Implementing Classes:
NativeHookDemo
,NativeKeyAdapter
,SwingKeyAdapter
public interface NativeKeyListener extends EventListener
The listener interface for receiving globalNativeKeyEvents
.The class that is interested in processing a
NativeKeyEvent
implements this interface, and the object created with that class is registered with theGlobalScreen
using theGlobalScreen.addNativeKeyListener(NativeKeyListener)
method. When theNativeKeyEvent
occurs, that object's appropriate method is invoked.- Since:
- 1.0
- Version:
- 2.0
- Author:
- Alexander Barker (alex@1stleg.com)
- See Also:
NativeKeyEvent
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
nativeKeyPressed(NativeKeyEvent nativeEvent)
Invoked when a key has been pressed.default void
nativeKeyReleased(NativeKeyEvent nativeEvent)
Invoked when a key has been released.default void
nativeKeyTyped(NativeKeyEvent nativeEvent)
Invoked when a key has been typed.
-
-
-
Method Detail
-
nativeKeyTyped
default void nativeKeyTyped(NativeKeyEvent nativeEvent)
Invoked when a key has been typed.- Parameters:
nativeEvent
- the native key event.- Since:
- 1.1
-
nativeKeyPressed
default void nativeKeyPressed(NativeKeyEvent nativeEvent)
Invoked when a key has been pressed.- Parameters:
nativeEvent
- the native key event.
-
nativeKeyReleased
default void nativeKeyReleased(NativeKeyEvent nativeEvent)
Invoked when a key has been released.- Parameters:
nativeEvent
- the native key event.
-
-