public static class InputEvent.RawMouseEvent extends InputEvent
InputEvent.ClickInputEvent, InputEvent.KeyInputEvent, InputEvent.MouseInputEvent, InputEvent.MouseScrollEvent, InputEvent.RawMouseEvent| Modifier and Type | Field and Description |
|---|---|
private int |
action |
private int |
button |
private int |
mods |
| Constructor and Description |
|---|
RawMouseEvent(int button,
int action,
int mods) |
| Modifier and Type | Method and Description |
|---|---|
int |
getAction()
Integer representing the mouse button's action.
|
int |
getButton()
The mouse button that triggered this event.
|
int |
getMods()
Bit field representing the modifier keys pressed.
|
private final int button
private final int action
private final int mods
public int getButton()
mouse constants starting with "GLFW_MOUSE_BUTTON_"public int getAction()
GLFW.GLFW_PRESS,
GLFW.GLFW_RELEASEpublic int getMods()
GLFW.GLFW_MOD_SHIFT,
GLFW.GLFW_MOD_CONTROL,
GLFW.GLFW_MOD_ALT,
GLFW.GLFW_MOD_SUPER