Gondwana Game Engine
Gondwana is a cross-platform 2.5D game and rendering engine written in C#/.NET 8. It provides fine-grained control over rendering, timing, and scene composition, with built-in support for parallax, z-ordering, pixel overhang, collision detection, and particle effects. Gondwana targets desktop, mobile, and web platforms using SkiaSharp for graphics and NAudio for sound.
Loading...
Searching...
No Matches
Gondwana.Input.Mouse.MouseButtonState Struct Reference

Represents the current and transitional state of a mouse button, tracking whether the button is currently held down and whether press or release events occurred in the current polling interval. This structure is typically used to detect button state changes and differentiate between continuous button holds and momentary press/release actions. More...

Public Attributes

bool IsDown
 Indicates whether the mouse button is currently in the down (pressed) state. This value remains true for the entire duration that the button is held down, from the initial press until the button is released.
bool JustPressed
 Indicates whether the mouse button transitioned from up to down (was pressed) during the current polling interval. This is true only for the single frame or poll where the button press occurred, making it useful for detecting the exact moment of a button press without responding repeatedly while the button is held down.
bool JustReleased
 Indicates whether the mouse button transitioned from down to up (was released) during the current polling interval. This is true only for the single frame or poll where the button release occurred, making it useful for detecting the exact moment of a button release and responding to completed click actions.

Detailed Description

Represents the current and transitional state of a mouse button, tracking whether the button is currently held down and whether press or release events occurred in the current polling interval. This structure is typically used to detect button state changes and differentiate between continuous button holds and momentary press/release actions.

Member Data Documentation

◆ IsDown

bool Gondwana.Input.Mouse.MouseButtonState.IsDown

Indicates whether the mouse button is currently in the down (pressed) state. This value remains true for the entire duration that the button is held down, from the initial press until the button is released.

◆ JustPressed

bool Gondwana.Input.Mouse.MouseButtonState.JustPressed

Indicates whether the mouse button transitioned from up to down (was pressed) during the current polling interval. This is true only for the single frame or poll where the button press occurred, making it useful for detecting the exact moment of a button press without responding repeatedly while the button is held down.

◆ JustReleased

bool Gondwana.Input.Mouse.MouseButtonState.JustReleased

Indicates whether the mouse button transitioned from down to up (was released) during the current polling interval. This is true only for the single frame or poll where the button release occurred, making it useful for detecting the exact moment of a button release and responding to completed click actions.