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 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 Details

    • 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