Gondwana Game Engine Development (master) - 2.6.1
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 and web platforms using SkiaSharp for graphics and pluggable audio backends for desktop and browser targets.
Loading...
Searching...
No Matches
Gondwana.Input.Gamepad.SDL2.SdlGamepadManager Class Referencesealed

Manages SDL2-based gamepad connections, disconnections, and state updates for the application. More...

Inheritance diagram for Gondwana.Input.Gamepad.SDL2.SdlGamepadManager:
Gondwana.Input.Gamepad.IGamepadManager< out T >

Public Member Functions

void UpdateConnections ()
 Checks SDL controller devices for connection and disconnection changes.
void Poll ()
 Refreshes SDL controller state and polls all currently connected adapters.
void Update ()
 Performs the legacy combined connection and state refresh.

Static Public Member Functions

static SdlGamepadManager Start ()
 Starts the SDL gamepad manager and returns the singleton instance.
static void Stop ()
 Stops the SDL gamepad manager, disposes all connected gamepad adapters, and clears the singleton instance.

Properties

static ? SdlGamepadManager Instance [get]
 Gets the singleton instance of the SdlGamepadManager, if it has been started.
IReadOnlyCollection< SdlGamepadAdapter > ConnectedAdapters [get]
 Gets the collection of currently connected gamepad adapters.

Detailed Description

Manages SDL2-based gamepad connections, disconnections, and state updates for the application.

Definition at line 9 of file SdlGamepadManager.cs.

Member Function Documentation

◆ Poll()

void Gondwana.Input.Gamepad.SDL2.SdlGamepadManager.Poll ( )

Refreshes SDL controller state and polls all currently connected adapters.

Implements Gondwana.Input.Gamepad.IGamepadManager< out T >.

Definition at line 94 of file SdlGamepadManager.cs.

◆ Start()

SdlGamepadManager Gondwana.Input.Gamepad.SDL2.SdlGamepadManager.Start ( )
static

Starts the SDL gamepad manager and returns the singleton instance.

Returns
The singleton SdlGamepadManager instance.

Definition at line 37 of file SdlGamepadManager.cs.

◆ Stop()

void Gondwana.Input.Gamepad.SDL2.SdlGamepadManager.Stop ( )
static

Stops the SDL gamepad manager, disposes all connected gamepad adapters, and clears the singleton instance.

Definition at line 48 of file SdlGamepadManager.cs.

◆ Update()

void Gondwana.Input.Gamepad.SDL2.SdlGamepadManager.Update ( )

Performs the legacy combined connection and state refresh.

Implements Gondwana.Input.Gamepad.IGamepadManager< out T >.

Definition at line 106 of file SdlGamepadManager.cs.

◆ UpdateConnections()

void Gondwana.Input.Gamepad.SDL2.SdlGamepadManager.UpdateConnections ( )

Checks SDL controller devices for connection and disconnection changes.

Implements Gondwana.Input.Gamepad.IGamepadManager< out T >.

Definition at line 65 of file SdlGamepadManager.cs.

Property Documentation

◆ ConnectedAdapters

IReadOnlyCollection<SdlGamepadAdapter> Gondwana.Input.Gamepad.SDL2.SdlGamepadManager.ConnectedAdapters
get

Gets the collection of currently connected gamepad adapters.

Implements Gondwana.Input.Gamepad.IGamepadManager< out T >.

Definition at line 21 of file SdlGamepadManager.cs.

◆ Instance

? SdlGamepadManager Gondwana.Input.Gamepad.SDL2.SdlGamepadManager.Instance
staticget

Gets the singleton instance of the SdlGamepadManager, if it has been started.

Definition at line 14 of file SdlGamepadManager.cs.