org.jagatoo.input.devices.components
Class MouseWheel
java.lang.Object
org.jagatoo.input.devices.components.DeviceComponent
org.jagatoo.input.devices.components.AnalogDeviceComponent
org.jagatoo.input.devices.components.MouseWheel
public class MouseWheel
- extends AnalogDeviceComponent
This is a simple abstaction of a mouse-wheel.
|
Constructor Summary |
MouseWheel(Mouse mouse)
Creates a new MouseWheel instance. |
MouseWheel(Mouse mouse,
java.lang.String name)
Creates a new MouseWheel instance. |
| Methods inherited from class org.jagatoo.input.devices.components.DeviceComponent |
bindAction, bindAction, getDeviceComponentID, getLocalizedName, getName, getType, isAnalog, isDigital, notifyBoundActions, unbindAction, unbindAction |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GLOBAL_WHEEL
public static final MouseWheel GLOBAL_WHEEL
MouseWheel
public MouseWheel(Mouse mouse,
java.lang.String name)
- Creates a new MouseWheel instance.
- Parameters:
mouse - the mouse, this wheel belongs toname - the wheel's name
MouseWheel
public MouseWheel(Mouse mouse)
- Creates a new MouseWheel instance.
- Parameters:
mouse - the mouse, this wheel belongs to
getMouse
public final Mouse getMouse()
- Returns:
- the Mouse, this wheel belongs to.
This can be
null for the global mouse-wheel.
getUp
public final MouseWheel.WheelUpDownComponent getUp()
- Returns:
- the special
DeviceComponent, that can be used
like a key/button for input bindings.
getDown
public final MouseWheel.WheelUpDownComponent getDown()
- Returns:
- the special
DeviceComponent, that can be used
like a key/button for input bindings.