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

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

Inheritance diagram for Gondwana.Input.Gamepad.IGamepadAdapter:
Gondwana.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.
GamepadStickState? LeftStick [get]
 Gets the current state of the left analog stick, or null if not available.
GamepadStickState? RightStick [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.

Definition at line 6 of file IGamepadAdapter.cs.

Property Documentation

◆ GamepadId

string Gondwana.Input.Gamepad.IGamepadAdapter.GamepadId
get

Gets the unique identifier for the gamepad device.

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

Definition at line 11 of file IGamepadAdapter.cs.

◆ 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.Input.Gamepad.SDL2.SdlGamepadAdapter, and Gondwana.WinForms.Input.Gamepad.XInput.XInputGamepadAdapter.

Definition at line 21 of file IGamepadAdapter.cs.

◆ 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.Input.Gamepad.SDL2.SdlGamepadAdapter, and Gondwana.WinForms.Input.Gamepad.XInput.XInputGamepadAdapter.

Definition at line 31 of file IGamepadAdapter.cs.

◆ 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.Input.Gamepad.SDL2.SdlGamepadAdapter, and Gondwana.WinForms.Input.Gamepad.XInput.XInputGamepadAdapter.

Definition at line 16 of file IGamepadAdapter.cs.

◆ 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.Input.Gamepad.SDL2.SdlGamepadAdapter, and Gondwana.WinForms.Input.Gamepad.XInput.XInputGamepadAdapter.

Definition at line 26 of file IGamepadAdapter.cs.

◆ 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.Input.Gamepad.SDL2.SdlGamepadAdapter, and Gondwana.WinForms.Input.Gamepad.XInput.XInputGamepadAdapter.

Definition at line 36 of file IGamepadAdapter.cs.