org.jrabbit.base.input
Interface MouseEventListener


public interface MouseEventListener

A MouseEventListener is used if the user wants to directly access the data from LWJGL Mouse events. MouseListener and MousemotionListener intentionally simplify the API to make using particular functionality easier, so this provides a direct line to the LWJGL event data.

Author:
Chris Molini

Method Summary
 void processMouseEvent(int button, boolean state, int x, int y, int dX, int dY, int dWheel)
          Processes the described LWJGL Mouse event.
 

Method Detail

processMouseEvent

void processMouseEvent(int button,
                       boolean state,
                       int x,
                       int y,
                       int dX,
                       int dY,
                       int dWheel)
Processes the described LWJGL Mouse event.

Parameters:
button - The ID of the mouse button causing the event (if any).
state - The state of the button that caused this event.
x - The x-coordinate of the mouse.
y - The y-coordinate of the mouse.
dX - The shift in the x-coordinate of the mouse.
dY - The shift in the y-coordinate of the mouse.
dWheel - The amount that the mouse wheel has changed.