Class ScreenEvent.MouseInput
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.client.event.ScreenEvent
net.neoforged.neoforge.client.event.ScreenEvent.MouseInput
- Direct Known Subclasses:
ScreenEvent.MouseButtonPressed
,ScreenEvent.MouseButtonReleased
,ScreenEvent.MouseDragged
,ScreenEvent.MouseScrolled
- Enclosing class:
ScreenEvent
Fired whenever an action is performed by the mouse.
See the various subclasses to listen for different actions.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class net.neoforged.neoforge.client.event.ScreenEvent
ScreenEvent.BackgroundRendered, ScreenEvent.CharacterTyped, ScreenEvent.Closing, ScreenEvent.Init, ScreenEvent.KeyPressed, ScreenEvent.KeyReleased, ScreenEvent.MouseButtonPressed, ScreenEvent.MouseButtonReleased, ScreenEvent.MouseDragged, ScreenEvent.MouseScrolled, ScreenEvent.Opening, ScreenEvent.Render, ScreenEvent.RenderInventoryMobEffects
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class net.neoforged.neoforge.client.event.ScreenEvent
getScreen
-
Field Details
-
mouseX
private final double mouseX -
mouseY
private final double mouseY
-
-
Constructor Details
-
MouseInput
-
-
Method Details
-
getMouseX
public double getMouseX()Returns the X position of the mouse cursor, relative to the screen.- Returns:
- the X position of the mouse cursor, relative to the screen
-
getMouseY
public double getMouseY()Returns the Y position of the mouse cursor, relative to the screen.- Returns:
- the Y position of the mouse cursor, relative to the screen
-