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.Gamepad.IGamepadAdapter Interface Reference

Defines an adapter interface for accessing gamepad input state and information. More...

Inheritance diagram for Gondwana.Input.Gamepad.IGamepadAdapter:
Gondwana.WinForms.Input.Gamepad.SDL2.SdlGamepadAdapter Gondwana.WinForms.Input.Gamepad.XInput.XInputGamepadAdapter

Properties

string GamepadId [get]
 Gets the unique identifier for the gamepad device.
IReadOnlyCollection< string > PressedButtons [get]
 Gets a read-only collection of button identifiers that are currently pressed on the gamepad.
GamepadStickStateLeftStick [get]
 Gets the current state of the left analog stick, or null if not available.
GamepadStickStateRightStick [get]
 Gets the current state of the right analog stick, or null if not available.
float LeftTrigger [get]
 Gets the current pressure value of the left trigger, typically ranging from 0.0 (not pressed) to 1.0 (fully pressed)
float RightTrigger [get]
 Gets the current pressure value of the right trigger, typically ranging from 0.0 (not pressed) to 1.0 (fully pressed)

Detailed Description

Defines an adapter interface for accessing gamepad input state and information.

Property Documentation

◆ GamepadId

string Gondwana.Input.Gamepad.IGamepadAdapter.GamepadId
get

◆ LeftStick

GamepadStickState? Gondwana.Input.Gamepad.IGamepadAdapter.LeftStick
get

Gets the current state of the left analog stick, or null if not available.

Implemented in Gondwana.WinForms.Input.Gamepad.SDL2.SdlGamepadAdapter, and Gondwana.WinForms.Input.Gamepad.XInput.XInputGamepadAdapter.

◆ LeftTrigger

float Gondwana.Input.Gamepad.IGamepadAdapter.LeftTrigger
get

Gets the current pressure value of the left trigger, typically ranging from 0.0 (not pressed) to 1.0 (fully pressed)

Implemented in Gondwana.WinForms.Input.Gamepad.SDL2.SdlGamepadAdapter, and Gondwana.WinForms.Input.Gamepad.XInput.XInputGamepadAdapter.

◆ PressedButtons

IReadOnlyCollection<string> Gondwana.Input.Gamepad.IGamepadAdapter.PressedButtons
get

Gets a read-only collection of button identifiers that are currently pressed on the gamepad.

Implemented in Gondwana.WinForms.Input.Gamepad.SDL2.SdlGamepadAdapter, and Gondwana.WinForms.Input.Gamepad.XInput.XInputGamepadAdapter.

◆ RightStick

GamepadStickState? Gondwana.Input.Gamepad.IGamepadAdapter.RightStick
get

Gets the current state of the right analog stick, or null if not available.

Implemented in Gondwana.WinForms.Input.Gamepad.SDL2.SdlGamepadAdapter, and Gondwana.WinForms.Input.Gamepad.XInput.XInputGamepadAdapter.

◆ RightTrigger

float Gondwana.Input.Gamepad.IGamepadAdapter.RightTrigger
get

Gets the current pressure value of the right trigger, typically ranging from 0.0 (not pressed) to 1.0 (fully pressed)

Implemented in Gondwana.WinForms.Input.Gamepad.SDL2.SdlGamepadAdapter, and Gondwana.WinForms.Input.Gamepad.XInput.XInputGamepadAdapter.