C# Class EliteUi.EliteGamepadAdapter

Adapter with auto-reconnect for the EliteGamepad
Afficher le fichier Open project: saqneo/Elite Class Usage Examples

Méthodes publiques

Méthode Description
GetCurrentUnmappedReading ( ) : GamepadReading

Gets the current unmapped reading.

TryCreate ( EliteGamepadAdapter &gamepad ) : bool

Tries to create a gamepad.

TryCreate ( string gamepadFriendlyName, EliteGamepadAdapter &gamepad ) : bool

Tries the create.

Private Methods

Méthode Description
EliteGamepadAdapter ( EliteGamepad gamepad ) : System

Initializes a new instance of the EliteGamepadAdapter class.

EnsureGamepadInitialized ( EliteGamepad gamepad ) : void

Connects the gamepad.

RemoveGamepad ( EliteGamepad data ) : void

Disconnects the gamepad.

Method Details

GetCurrentUnmappedReading() public méthode

Gets the current unmapped reading.
The gamepad is uninitialized or disconnected.
public GetCurrentUnmappedReading ( ) : GamepadReading
Résultat GamepadReading

TryCreate() public static méthode

Tries to create a gamepad.
public static TryCreate ( EliteGamepadAdapter &gamepad ) : bool
gamepad EliteGamepadAdapter The gamepad.
Résultat bool

TryCreate() public static méthode

Tries the create.
public static TryCreate ( string gamepadFriendlyName, EliteGamepadAdapter &gamepad ) : bool
gamepadFriendlyName string ID of the game pad trying to be created.
gamepad EliteGamepadAdapter The gamepad.
Résultat bool