Class Mouse

  • All Implemented Interfaces:
    Controller

    public abstract class Mouse
    extends AbstractController
    A Mouse is a type of controller consisting of two child controllers, a ball and a button pad. This includes devices such as touch pads, trackballs, and fingersticks.
    • Constructor Detail

    • Method Detail

      • getX

        public Component getX()
        Returns the x-axis for the mouse ball, never null.
      • getY

        public Component getY()
        Returns the y-axis for the mouse ball, never null.
      • getWheel

        public Component getWheel()
        Returns the mouse wheel, or null if no mouse wheel is present.
      • getPrimaryButton

        public Component getPrimaryButton()
        Returns the left or primary mouse button, never null.
      • getSecondaryButton

        public Component getSecondaryButton()
        Returns the right or secondary mouse button, null if the mouse is a single-button mouse.
      • getTertiaryButton

        public Component getTertiaryButton()
        Returns the middle or tertiary mouse button, null if the mouse has fewer than three buttons.
      • getLeft

        public Component getLeft()
        Returns the left mouse button.
      • getRight

        public Component getRight()
        Returns the right, null if the mouse is a single-button mouse.
      • getMiddle

        public Component getMiddle()
        Returns the middle, null if the mouse has fewer than three buttons.
      • getSide

        public Component getSide()
        Returns the side or 4th mouse button, null if the mouse has fewer than 4 buttons.
      • getExtra

        public Component getExtra()
        Returns the extra or 5th mouse button, null if the mouse has fewer than 5 buttons.
      • getForward

        public Component getForward()
        Returns the forward mouse button, null if the mouse hasn't got one.
      • getBack

        public Component getBack()
        Returns the back mouse button, null if the mouse hasn't got one.
      • getButton3

        public Component getButton3()
        Returns forth mouse button, null if the mouse hasn't got one.
      • getButton4

        public Component getButton4()
        Returns fifth mouse button, null if the mouse hasn't got one.