MouseInfo class final

Snapshot of the full mouse state for the current frame.

A convenience aggregate that collects position, movement, scroll, and all button states into a single object. Avoids making individual Raylib calls for each piece of mouse data per frame.

Constructors

MouseInfo({Vector2D? position, Vector2D? delta, Vector2D? wheel, MouseButtonInfo? btnLeft, MouseButtonInfo? btnMiddle, MouseButtonInfo? btnRight, MouseButtonInfo? btnSide, MouseButtonInfo? btnExtra, MouseButtonInfo? btnForward, MouseButtonInfo? btnBack})

Properties

btnBack → MouseButtonInfo
State of the back mouse button (MouseButton.MOUSE_BUTTON_BACK).
final
btnExtra → MouseButtonInfo
State of the extra mouse button (MouseButton.MOUSE_BUTTON_EXTRA).
final
btnForward → MouseButtonInfo
State of the forward mouse button (MouseButton.MOUSE_BUTTON_FORWARD).
final
btnLeft → MouseButtonInfo
State of the left mouse button (MouseButton.MOUSE_BUTTON_LEFT).
final
btnMiddle → MouseButtonInfo
State of the middle mouse button (MouseButton.MOUSE_BUTTON_MIDDLE).
final
btnRight → MouseButtonInfo
State of the right mouse button (MouseButton.MOUSE_BUTTON_RIGHT).
final
btnSide → MouseButtonInfo
State of the side mouse button (MouseButton.MOUSE_BUTTON_SIDE).
final
delta → Vector2D
Cursor movement since the last frame.
final
hashCode → int
The hash code for this object.
no setterinherited
position → Vector2D
Cursor position in screen space.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
wheel → Vector2D
Scroll wheel movement since the last frame.
final

Methods

getButtonInfo(MouseButton button) → MouseButtonInfo
Returns the MouseButtonInfo for the given button.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited