Module com.github.kwhat.jnativehook
Interface NativeMouseMotionListener
-
- All Superinterfaces:
EventListener
- All Known Subinterfaces:
NativeMouseInputListener
- All Known Implementing Classes:
NativeHookDemo
,NativeMouseInputAdapter
,NativeMouseMotionAdapter
public interface NativeMouseMotionListener extends EventListener
The listener interface for receiving native mouse motion events. (For clicks and other mouse events, use theNativeMouseListener
.)The class that is interested in processing a
NativeMouseMotionEvent
implements this interface, and the object created with that class is registered with theGlobalScreen
using theGlobalScreen.addNativeMouseMotionListener(com.github.kwhat.jnativehook.mouse.NativeMouseMotionListener)
method. When the NativeMouseMotion event occurs, that object's appropriate method is invoked.- Since:
- 1.0
- Version:
- 2.0
- Author:
- Alexander Barker (alex@1stleg.com)
- See Also:
NativeMouseEvent
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
nativeMouseDragged(NativeMouseEvent nativeEvent)
Invoked when the mouse has been moved while a button is depressed.default void
nativeMouseMoved(NativeMouseEvent nativeEvent)
Invoked when the mouse has been moved.
-
-
-
Method Detail
-
nativeMouseMoved
default void nativeMouseMoved(NativeMouseEvent nativeEvent)
Invoked when the mouse has been moved.- Parameters:
nativeEvent
- the native mouse event.
-
nativeMouseDragged
default void nativeMouseDragged(NativeMouseEvent nativeEvent)
Invoked when the mouse has been moved while a button is depressed.- Parameters:
nativeEvent
- the native mouse event- Since:
- 1.1
-
-