Module com.github.kwhat.jnativehook
Interface NativeMouseMotionListener
- All Superinterfaces:
EventListener
- All Known Subinterfaces:
NativeMouseInputListener
- All Known Implementing Classes:
NativeHookDemo,NativeMouseInputAdapter,NativeMouseMotionAdapter
The listener interface for receiving native mouse motion events. (For clicks and other mouse
events, use the
NativeMouseListener.)
The class that is interested in processing a NativeMouseMotionEvent implements this
interface, and the object created with that class is registered with the
GlobalScreen using the GlobalScreen.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:
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidnativeMouseDragged(NativeMouseEvent nativeEvent) Invoked when the mouse has been moved while a button is depressed.default voidnativeMouseMoved(NativeMouseEvent nativeEvent) Invoked when the mouse has been moved.
-
Method Details
-
nativeMouseMoved
Invoked when the mouse has been moved.- Parameters:
nativeEvent- the native mouse event.
-
nativeMouseDragged
Invoked when the mouse has been moved while a button is depressed.- Parameters:
nativeEvent- the native mouse event- Since:
- 1.1
-