![]() |
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.
|
Interface to track a collection of IGamepadAdapter gamepad adapters. More...
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. | |
Interface to track a collection of IGamepadAdapter gamepad adapters.
| T | The type of t. |
| T | : | IGamepadAdapter |
Definition at line 7 of file IGamepadManager.cs.
| 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.
| 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.
| 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.
|
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.