TGamepadDevicesManager Class

Gamepad manager class, to use as a singleton.

Unit: Gamolf.RTL.Joystick
TInterfacedObject
  Gamolf.RTL.Joystick.TGamepadDevicesManager
type TGamepadDevicesManager = class(TInterfacedObject)

The TGamepadDevicesManager type exposes the following members.

Show:
 NameDescription
Create

Destroy

Top
Show:
 NameDescription
Enabled

Start or stop the gamepad infos check loop

IsSupported

Check if the gamepad API is available for this platform

OnGamepadAxesChange

Called for each new value of a gamepad axe (X,Y or others)

OnGamepadButtonDown

Called when a gamepad button is down (pressed)

OnGamepadButtonUp

Called when a gamepad button is up (unpressed)

OnGamepadDirectionPadChange

Called for each direction change from a gamepad DPAD (if available on it)

OnGamepadLost

To know if a connected gamepad is disconnected from the system or powered off.

OnNewGamepadDetected

Used when a new gamepad is detected (it should be connected but can be not).

SynchronizedEvents

Execute events in main thread or in the thread used by the gamepad manager

Tag

Tag property "in case of" not used in this class

TagBool

TagBool property "in case of" not used in this class

TagFloat

TagFloat property "in case of" not used in this class

TagObject

TagObject property "in case of" not used in this class

TagString

TagString property "in case of" not used in this class

Top
Show:
 NameDescription
ConnectedGamepadCount

Return the connected gamepads number

Current

DoGamepadAxesChange

DoGamepadButtonDown

DoGamepadButtonUp

DoGamepadDirectionPadChange

DoLostGamepad

DoNewGamepadDetected

Execute

GamepadCount

Count the detected gamepads number (detected or declared in the OS depending on the platform)

GetGamepad

Return the gamepad data class

IsGamepadConnected

RegisterGamePadDevice

RegisterGamePadManager

UnRegisterGamePadDevice

UnRegisterGamePadManager

Top