Package net.minecraftforge.client.event
Class InputEvent.RawMouseEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.InputEvent
net.minecraftforge.client.event.InputEvent.RawMouseEvent
- Enclosing class:
- InputEvent
A cancellable mouse event fired before key bindings are updated
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.client.event.InputEvent
InputEvent.ClickInputEvent, InputEvent.KeyInputEvent, InputEvent.MouseInputEvent, InputEvent.MouseScrollEvent, InputEvent.RawMouseEvent
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
-
Field Details
-
button
private final int button -
action
private final int action -
mods
private final int mods
-
-
Constructor Details
-
RawMouseEvent
public RawMouseEvent(int button, int action, int mods)
-
-
Method Details
-
getButton
public int getButton()The mouse button that triggered this event. https://www.glfw.org/docs/latest/group__buttons.html- See Also:
mouse constants starting with "GLFW_MOUSE_BUTTON_"
-
getAction
public int getAction()Integer representing the mouse button's action.- See Also:
GLFW.GLFW_PRESS
,GLFW.GLFW_RELEASE
-
getMods
public int getMods()Bit field representing the modifier keys pressed. https://www.glfw.org/docs/latest/group__mods.html- See Also:
GLFW.GLFW_MOD_SHIFT
,GLFW.GLFW_MOD_CONTROL
,GLFW.GLFW_MOD_ALT
,GLFW.GLFW_MOD_SUPER
-