public interface NativeMouseListener extends EventListener
NativeMouseEvents.
(To track native mouse moves, use the NativeMouseMotionListener.)
The class that is interested in processing a NativeMouseEvent
implements this interface, and the object created with that class is
registered with the GlobalScreen using the
GlobalScreen.addNativeMouseListener(org.jnativehook.mouse.NativeMouseListener) method. When the
NativeMouseMotion event occurs, that object's appropriate
method is invoked.
NativeMouseEvent| Modifier and Type | Method and Description |
|---|---|
void |
nativeMouseClicked(NativeMouseEvent nativeEvent)
Invoked when a mouse button has been clicked (pressed and released)
without being moved.
|
void |
nativeMousePressed(NativeMouseEvent nativeEvent)
Invoked when a mouse button has been pressed
|
void |
nativeMouseReleased(NativeMouseEvent nativeEvent)
Invoked when a mouse button has been released
|
void nativeMouseClicked(NativeMouseEvent nativeEvent)
nativeEvent - the native mouse event.void nativeMousePressed(NativeMouseEvent nativeEvent)
nativeEvent - the native mouse event.void nativeMouseReleased(NativeMouseEvent nativeEvent)
nativeEvent - the native mouse event.Copyright © 2006-2017 ${project.vendor}. All Rights Received.