Class TGamolfJoystickWinDirectInputService

Unit

Declaration

type TGamolfJoystickWinDirectInputService = class(TGamolfCustomJoystickService)

Description

No description available, ancestor TGamolfCustomJoystickService description follows

Platform service to access to joystick/gamepad controllers on a computer

Hierarchy

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;
 

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

Delphi Game Engine (c) 2021-2025 Patrick PREMARTIN - Powered by PasDoc
Generated by PasDoc 0.16.0.