C# Class EliteUi.EliteGamepadAdapter

Adapter with auto-reconnect for the EliteGamepad
Exibir arquivo Open project: saqneo/Elite Class Usage Examples

Public Methods

Method 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

Method 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 method

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

TryCreate() public static method

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

TryCreate() public static method

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.
return bool