public abstract class Mouse extends AbstractController
Controller.PortType, Controller.Type
Modifier | Constructor and Description |
---|---|
protected |
Mouse(java.lang.String name,
Component[] components,
Controller[] children,
Rumbler[] rumblers) |
Modifier and Type | Method and Description |
---|---|
Component |
getBack()
Returns the back mouse button, null if the mouse hasn't
got one.
|
Component |
getButton3()
Returns forth mouse button, null if the mouse hasn't
got one.
|
Component |
getButton4()
Returns fifth mouse button, null if the mouse hasn't
got one.
|
Component |
getExtra()
Returns the extra or 5th mouse button, null if the mouse has
fewer than 5 buttons.
|
Component |
getForward()
Returns the forward mouse button, null if the mouse hasn't
got one.
|
Component |
getLeft()
Returns the left mouse button.
|
Component |
getMiddle()
Returns the middle, null if the mouse has fewer than three buttons.
|
Component |
getPrimaryButton()
Returns the left or primary mouse button, never null.
|
Component |
getRight()
Returns the right, null if the mouse is a single-button mouse.
|
Component |
getSecondaryButton()
Returns the right or secondary mouse button, null if the mouse is
a single-button mouse.
|
Component |
getSide()
Returns the side or 4th mouse button, null if the mouse has
fewer than 4 buttons.
|
Component |
getTertiaryButton()
Returns the middle or tertiary mouse button, null if the mouse has
fewer than three buttons.
|
Controller.Type |
getType()
Returns the type of the Controller.
|
Component |
getWheel()
Returns the mouse wheel, or null if no mouse wheel is present.
|
Component |
getX()
Returns the x-axis for the mouse ball, never null.
|
Component |
getY()
Returns the y-axis for the mouse ball, never null.
|
getComponent, getComponents, getControllers, getEventQueue, getName, getNextDeviceEvent, getPortNumber, getPortType, getRumblers, poll, pollDevice, setDeviceEventQueueSize, setEventQueueSize, toString
protected Mouse(java.lang.String name, Component[] components, Controller[] children, Rumbler[] rumblers)
public Controller.Type getType()
getType
in interface Controller
getType
in class AbstractController
public Component getX()
public Component getY()
public Component getWheel()
public Component getPrimaryButton()
public Component getSecondaryButton()
public Component getTertiaryButton()
public Component getLeft()
public Component getRight()
public Component getMiddle()
public Component getSide()
public Component getExtra()
public Component getForward()
public Component getBack()
public Component getButton3()
public Component getButton4()