Class TGamolfJoystickWinDirectInputService
Unit
Gamolf.RTL.Joystick.DirectInput.Win
Declaration
type TGamolfJoystickWinDirectInputService = class(TGamolfCustomJoystickService)
Description
This item has no description. Showing description inherited from TGamolfCustomJoystickService.
Platform service to access to joystick/gamepad controllers on a computer
Hierarchy
- TInterfacedObject
- TGamolfCustomJoystickService
- TGamolfJoystickWinDirectInputService
Overview
Fields
| Protected | FNbControllers: byte; |
Methods
| Public | procedure StartDiscovery; override; |
| Public | function Count: byte; override; |
| Public | function isConnected(JoystickID: TJoystickID): boolean; override; |
| Public | procedure getInfo(JoystickID: TJoystickID; var Joystick: TJoystickInfo); override; |
| Public | function hasDPad(JoystickID: TJoystickID): boolean; override; |
Description
Fields
| Protected | FNbControllers: byte; |
|
This item has no description. | |
Methods
| Public | procedure StartDiscovery; override; |
|
Scan for available devices (if some are already used, their ID could change) | |
| Public | function Count: byte; override; |
|
Return the number of joysticks managed by the system | |
| Public | function isConnected(JoystickID: TJoystickID): boolean; override; |
|
Return "true" if the JoystickID controller is connected and available | |
| Public | procedure getInfo(JoystickID: TJoystickID; var Joystick: TJoystickInfo); override; |
|
Return a TJoystickInfo for the JoystickID controller | |
| Public | function hasDPad(JoystickID: TJoystickID): boolean; override; |
|
Check if the game controller has a DPad/POV button | |
Generated by PasDoc 1.0.2.