org.minueto.handlers
Interface MinuetoMouseWheelHandler


public interface MinuetoMouseWheelHandler

The MinuetoMouseWheelHandler is an interface for receiving a mouse wheel event (rotate) from a MinuetoWindow and handling it.

In other words, the class that will handle mouse wheel input from MinuetoWindow must extend this interface. In turn, that class must be registered with the MinuetoEventQueue.

An event is generated everytime the mouse wheel is turned. When the handle method on the MinuetoEventQueue is invoked, that event is processed and the appropriate method in MinuetoMouseWheelHandler is invoked.

Since:
Minueto 0.4
See Also:
MinuetoMouse, MinuetoEventQueue

Method Summary
 void handleMouseWheelRotate(int rotate)
          Invoked when a mouse wheel is turned.
 

Method Detail

handleMouseWheelRotate

void handleMouseWheelRotate(int rotate)
Invoked when a mouse wheel is turned. The amount of rotation is passed throught the method argument.

Note: If the mouse wheel rotated towards the user (down) the value is positive. If the mouse wheel rotated away from the user (up) the value is negative.

Parameters:
rotate - int denoting how much the mouse wheel was turned.