public static enum Mouse.MouseButton extends java.lang.Enum<Mouse.MouseButton>
Enum Constant and Description |
---|
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.
|
Modifier and Type | Field and Description |
---|---|
static Mouse.MouseButton |
MOUSE_BUTTON_LEFT
The constant MOUSE_BUTTON_LEFT.
|
static Mouse.MouseButton |
MOUSE_BUTTON_MIDDLE
The constant MOUSE_BUTTON_MIDDLE.
|
static Mouse.MouseButton |
MOUSE_BUTTON_RIGHT
The constant MOUSE_BUTTON_RIGHT.
|
Modifier and Type | Method and Description |
---|---|
static Mouse.MouseButton |
getByCode(int code)
Gets by code.
|
int |
getCode()
Gets code.
|
org.joml.Vector2f |
getPressPosition()
Gets press position.
|
org.joml.Vector2f |
getReleasePosition()
Gets release position.
|
boolean |
isPressed()
Is pressed boolean.
|
void |
setPressed(boolean pressed)
Sets pressed.
|
void |
setPressPosition(org.joml.Vector2f pressPosition)
Sets press position.
|
void |
setReleasePosition(org.joml.Vector2f releasePosition)
Sets release position.
|
static Mouse.MouseButton |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Mouse.MouseButton[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Mouse.MouseButton MOUSE_BUTTON_1
public static final Mouse.MouseButton MOUSE_BUTTON_2
public static final Mouse.MouseButton MOUSE_BUTTON_3
public static final Mouse.MouseButton MOUSE_BUTTON_4
public static final Mouse.MouseButton MOUSE_BUTTON_5
public static final Mouse.MouseButton MOUSE_BUTTON_6
public static final Mouse.MouseButton MOUSE_BUTTON_7
public static final Mouse.MouseButton MOUSE_BUTTON_8
public static final Mouse.MouseButton MOUSE_BUTTON_UNKNOWN
public static final Mouse.MouseButton MOUSE_BUTTON_LEFT
public static final Mouse.MouseButton MOUSE_BUTTON_RIGHT
public static final Mouse.MouseButton MOUSE_BUTTON_MIDDLE
public static Mouse.MouseButton[] values()
for (Mouse.MouseButton c : Mouse.MouseButton.values()) System.out.println(c);
public static Mouse.MouseButton valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static Mouse.MouseButton getByCode(int code)
code
- the codepublic int getCode()
public boolean isPressed()
public void setPressed(boolean pressed)
pressed
- the pressedpublic org.joml.Vector2f getReleasePosition()
public void setReleasePosition(org.joml.Vector2f releasePosition)
releasePosition
- the release positionpublic org.joml.Vector2f getPressPosition()
public void setPressPosition(org.joml.Vector2f pressPosition)
pressPosition
- the press position