Package com.spinyowl.legui.input
Enum Class Mouse.MouseButton
- All Implemented Interfaces:
Serializable,Comparable<Mouse.MouseButton>,Constable
- Enclosing class:
- Mouse
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionMouse button 1.Mouse button 2.Mouse button 3.Mouse button 4.Mouse button 5.Mouse button 6.Mouse button 7.Mouse button 8.Unknown mouse button. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Mouse.MouseButtonThe constant MOUSE_BUTTON_LEFT.static final Mouse.MouseButtonThe constant MOUSE_BUTTON_MIDDLE.static final Mouse.MouseButtonThe constant MOUSE_BUTTON_RIGHT. -
Method Summary
Modifier and TypeMethodDescriptionstatic Mouse.MouseButtongetByCode(int code) Gets by code.intgetCode()Gets code.org.joml.Vector2fGets press position.org.joml.Vector2fGets release position.booleanIs pressed boolean.voidsetPressed(boolean pressed) Sets pressed.voidsetPressPosition(org.joml.Vector2f pressPosition) Sets press position.voidsetReleasePosition(org.joml.Vector2f releasePosition) Sets release position.static Mouse.MouseButtonReturns the enum constant of this class with the specified name.static Mouse.MouseButton[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MOUSE_BUTTON_1
Mouse button 1. -
MOUSE_BUTTON_2
Mouse button 2. -
MOUSE_BUTTON_3
Mouse button 3. -
MOUSE_BUTTON_4
Mouse button 4. -
MOUSE_BUTTON_5
Mouse button 5. -
MOUSE_BUTTON_6
Mouse button 6. -
MOUSE_BUTTON_7
Mouse button 7. -
MOUSE_BUTTON_8
Mouse button 8. -
MOUSE_BUTTON_UNKNOWN
Unknown mouse button.
-
-
Field Details
-
MOUSE_BUTTON_LEFT
The constant MOUSE_BUTTON_LEFT. -
MOUSE_BUTTON_RIGHT
The constant MOUSE_BUTTON_RIGHT. -
MOUSE_BUTTON_MIDDLE
The constant MOUSE_BUTTON_MIDDLE.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getByCode
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
-