Enum Class Mouse.MouseButton

java.lang.Object
java.lang.Enum<Mouse.MouseButton>
com.spinyowl.legui.input.Mouse.MouseButton
All Implemented Interfaces:
Serializable, Comparable<Mouse.MouseButton>, Constable
Enclosing class:
Mouse

public static enum Mouse.MouseButton extends Enum<Mouse.MouseButton>
  • Enum Constant Details

    • MOUSE_BUTTON_1

      public static final Mouse.MouseButton MOUSE_BUTTON_1
      Mouse button 1.
    • MOUSE_BUTTON_2

      public static final Mouse.MouseButton MOUSE_BUTTON_2
      Mouse button 2.
    • MOUSE_BUTTON_3

      public static final Mouse.MouseButton MOUSE_BUTTON_3
      Mouse button 3.
    • MOUSE_BUTTON_4

      public static final Mouse.MouseButton MOUSE_BUTTON_4
      Mouse button 4.
    • MOUSE_BUTTON_5

      public static final Mouse.MouseButton MOUSE_BUTTON_5
      Mouse button 5.
    • MOUSE_BUTTON_6

      public static final Mouse.MouseButton MOUSE_BUTTON_6
      Mouse button 6.
    • MOUSE_BUTTON_7

      public static final Mouse.MouseButton MOUSE_BUTTON_7
      Mouse button 7.
    • MOUSE_BUTTON_8

      public static final Mouse.MouseButton MOUSE_BUTTON_8
      Mouse button 8.
    • MOUSE_BUTTON_UNKNOWN

      public static final Mouse.MouseButton MOUSE_BUTTON_UNKNOWN
      Unknown mouse button.
  • Field Details

    • MOUSE_BUTTON_LEFT

      public static final Mouse.MouseButton MOUSE_BUTTON_LEFT
      The constant MOUSE_BUTTON_LEFT.
    • MOUSE_BUTTON_RIGHT

      public static final Mouse.MouseButton MOUSE_BUTTON_RIGHT
      The constant MOUSE_BUTTON_RIGHT.
    • MOUSE_BUTTON_MIDDLE

      public static final Mouse.MouseButton MOUSE_BUTTON_MIDDLE
      The constant MOUSE_BUTTON_MIDDLE.
  • Method Details

    • values

      public static Mouse.MouseButton[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Mouse.MouseButton valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getByCode

      public static Mouse.MouseButton getByCode(int code)
      Gets by code.
      Parameters:
      code - the code
      Returns:
      the by code
    • getCode

      public int getCode()
      Gets code.
      Returns:
      the code
    • isPressed

      public boolean isPressed()
      Is pressed boolean.
      Returns:
      the boolean
    • setPressed

      public void setPressed(boolean pressed)
      Sets pressed.
      Parameters:
      pressed - the pressed
    • getReleasePosition

      public org.joml.Vector2f getReleasePosition()
      Gets release position.
      Returns:
      the release position
    • setReleasePosition

      public void setReleasePosition(org.joml.Vector2f releasePosition)
      Sets release position.
      Parameters:
      releasePosition - the release position
    • getPressPosition

      public org.joml.Vector2f getPressPosition()
      Gets press position.
      Returns:
      the press position
    • setPressPosition

      public void setPressPosition(org.joml.Vector2f pressPosition)
      Sets press position.
      Parameters:
      pressPosition - the press position