Package net.minecraftforge.client.event
Class InputEvent.MouseInputEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.InputEvent
net.minecraftforge.client.event.InputEvent.MouseInputEvent
- Enclosing class:
- InputEvent
This event fires when a mouse input is detected.
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraftforge.client.event.InputEventInputEvent.ClickInputEvent, InputEvent.KeyInputEvent, InputEvent.MouseInputEvent, InputEvent.MouseScrollEvent, InputEvent.RawMouseEventNested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Eventnet.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class net.minecraftforge.eventbus.api.EventgetListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
- 
Field Details- 
buttonprivate final int button
- 
actionprivate final int action
- 
modsprivate final int mods
 
- 
- 
Constructor Details- 
MouseInputEventpublic MouseInputEvent(int button, int action, int mods) 
 
- 
- 
Method Details- 
getButtonpublic 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_"
 
 
- 
getActionpublic int getAction()Integer representing the mouse button's action.- See Also:
- 
- GLFW.GLFW_PRESS
- GLFW.GLFW_RELEASE
 
 
- 
getModspublic 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
 
 
 
-