Basics
Guides
API Reference
Basics
Guides
API Reference
[13:7] extends: FxObj
Wraps FXGL's MouseEventData (com.almasb.fxgl.input.MouseEventData), the FXGL-specific wrapper around a JavaFX MouseEvent that adds scene-scale and viewport context. Returned by FXGL's mouse-event subscribers (e.g. Input.addEventFilter for FXGL mouse events).
MouseEventData ()
Empty default constructor; populated by adopt.
adopt (object Ajo)
Wraps an existing MouseEventData AussomJavaObject.
Ajo is an AussomJavaObject around a MouseEventData.A new wrapper.getEvent ()
Returns the underlying JavaFX MouseEvent.
An AussomJavaObject around a javafx.scene.input.MouseEvent.getContentRootTranslation ()
Returns the content-root translation Point2D applied by FXGL at event time.
An AussomJavaObject around a Point2D.getViewportOrigin ()
Returns the viewport origin Point2D at event time.
An AussomJavaObject around a Point2D.getViewportZoom ()
Returns the viewport zoom factor at event time.
A double.getScaleRatioX ()
Returns the X axis scale ratio at event time.
A double.getScaleRatioY ()
Returns the Y axis scale ratio at event time.
A double.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.