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.IGamepadManager< out T > Interface Template Reference

Interface to track a collection of IGamepadAdapter gamepad adapters. More...

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

Public Member Functions

void UpdateConnections ()
 Refreshes the collection of connected and disconnected gamepad adapters.
void Poll ()
 Polls the current state of already-connected gamepad adapters.
void Update ()
 Refreshes connection and controller state using the legacy combined operation.

Properties

IReadOnlyCollection< T > ConnectedAdapters [get]
 Gets the list of currently connected gamepad adapters.

Detailed Description

Interface to track a collection of IGamepadAdapter gamepad adapters.

Template Parameters
TThe type of t.
Type Constraints
T :IGamepadAdapter 

Definition at line 7 of file IGamepadManager.cs.

Member Function Documentation

◆ Poll()

void Gondwana.Input.Gamepad.IGamepadManager< out T >.Poll ( )

Polls the current state of already-connected gamepad adapters.

The engine invokes this operation on the cadence configured by Gondwana.Configuration.EngineConfiguration.GamepadPollFrequencyHz. The default implementation forwards to the legacy Update method so custom managers compiled against the older combined contract continue to refresh state.

Implemented in Gondwana.Input.Gamepad.SDL2.SdlGamepadManager, and Gondwana.WinForms.Input.Gamepad.XInput.XInputGamepadManager.

◆ Update()

void Gondwana.Input.Gamepad.IGamepadManager< out T >.Update ( )

Refreshes connection and controller state using the legacy combined operation.

New implementations should override UpdateConnections and Poll separately. This member remains abstract for compatibility with existing custom managers; the engine no longer calls it directly.

Implemented in Gondwana.Input.Gamepad.SDL2.SdlGamepadManager, and Gondwana.WinForms.Input.Gamepad.XInput.XInputGamepadManager.

◆ UpdateConnections()

void Gondwana.Input.Gamepad.IGamepadManager< out T >.UpdateConnections ( )

Refreshes the collection of connected and disconnected gamepad adapters.

The engine invokes this operation on the cadence configured by Gondwana.Configuration.EngineConfiguration.GamepadConnectionUpdateFrequencyHz. Implementations should keep connection discovery separate from live controller-state polling when the underlying backend permits it.

Implemented in Gondwana.Input.Gamepad.SDL2.SdlGamepadManager, and Gondwana.WinForms.Input.Gamepad.XInput.XInputGamepadManager.

Definition at line 23 of file IGamepadManager.cs.

Property Documentation

◆ ConnectedAdapters

IReadOnlyCollection<T> Gondwana.Input.Gamepad.IGamepadManager< out T >.ConnectedAdapters
get

Gets the list of currently connected gamepad adapters.

Implemented in Gondwana.Input.Gamepad.SDL2.SdlGamepadManager, and Gondwana.WinForms.Input.Gamepad.XInput.XInputGamepadManager.

Definition at line 12 of file IGamepadManager.cs.