Basics
Guides
API Reference
Basics
Guides
API Reference
[14:7] extends: FxObj
Wraps FXGL's SoftwareCursor, a custom cursor (rendered as a triangular Polygon by default) for fullscreen games that hide the OS cursor. The wrapped object is the SoftwareCursor holder; call getCursorNode to retrieve the underlying JavaFX Node to add to the scene.
SoftwareCursor (object ColorObj)
Creates a new SoftwareCursor with the given fill color.
ColorObj is a Color wrapper for the cursor fill.getCursorNode ()
Returns the underlying JavaFX Node to add to the scene.
An AussomJavaObject around a javafx.scene.Node.setPositionX (double X)
Sets the cursor X position in scene coordinates.
X is the X coordinate.this objectsetPositionY (double Y)
Sets the cursor Y position in scene coordinates.
Y is the Y coordinate.this objectsetPosition (double X, double Y)
Sets the cursor position. Call this from a mouse-move event handler so the cursor follows the input.
X is the X coordinate.Y is the Y coordinate.this objecttranslatePositionX (double Dx)
Translates the cursor by the supplied X delta.
Dx is the X delta.this objecttranslatePositionY (double Dy)
Translates the cursor by the supplied Y delta.
Dy is the Y delta.this objecttranslatePosition (double Dx, double Dy)
Translates the cursor by (Dx, Dy).
Dx is the X delta.Dy is the Y delta.this objectsetShape (list Points, object ColorObj)
Replaces this cursor's shape with the given polygon points (paired X, Y values in scene coordinates) and fill color. Useful when the default triangular cursor is not the desired silhouette. Implementation note: the underlying FXGL constructor takes Double[] + Color; this helper constructs a fresh cursor and swaps its backing object into this wrapper so existing method calls continue to work.
Points is a list of doubles in [x0, y0, x1, y1, ...] order.ColorObj is a Color wrapper.this object
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.