Gorilla.Controller.Input.GamePad.Windows
Unit Gorilla.Controller.Input.GamePad.Windows.pasClasses
- TGorillaGamePad = class ( TGorillaCustomGamePad )
- TGorillaWindowsGamePadHandler = class ( TGorillaCustomGamePadHandler )
TGorillaGamePad
Ancestors
Members
Fields
- protected FState :
_XINPUT_STATE
- protected FPrevState :
_XINPUT_STATE
- protected FCapabilities :
_XINPUT_CAPABILITIES
- protected FBattery :
_XINPUT_BATTERY_INFORMATION
Methods
- public constructor Create ( const AHandler : TGorillaCustomGamePadHandler; const AID : Integer ) ;
- protected function GetDeviceType ( ) : TGorillaGamePadDeviceType ; override;
- protected function GetButtons ( ) : TGorillaGamePadButtons ; override;
- protected function GetTriggers ( ) : TPoint ; override;
- protected function GetLeftThumbStickPosition ( ) : TPoint ; override;
- protected function GetRightThumbStickPosition ( ) : TPoint ; override;
- protected function GetLeftMotorSpeed ( ) : Word ; override;
- protected procedure SetLeftMotorSpeed ( const AValue : Word ) ; override;
- protected function GetRightMotorSpeed ( ) : Word ; override;
- protected procedure SetRightMotorSpeed ( const AValue : Word ) ; override;
- protected function GetBatteryType ( ) : Byte ; override;
- protected function GetBatteryLevel ( ) : Byte ; override;
- protected procedure DoSetVibration
(
)
;
Set motor speed (vibration) for left and right motor.
- protected procedure DispatchMessages
(
)
;
Dispatches TGorillaInputMessage instances to the owner handler
- protected procedure DoRequestVibrationInfo
(
const
ATimestamp :
Int64
)
;
Requests the vibration information in a fixed interval defined by the GORILLA_GAMEPAD_VIBRATION_CHECK constant.
- protected procedure DoRequestBatteryInfo
(
const
ATimestamp :
Int64
)
;
Requests the battery state in a fixed interval defined by the GORILLA_GAMEPAD_BATTERY_CHECK constant.
- protected function DoApplyDeadzone
(
const
APos :
TPoint; const
ADeadZone :
Cardinal
)
: Boolean
;
Applies the deadzone to the thumbstick positions after they were read from device.
- protected function DoApplyDeadzoneLeft ( ) : Boolean ;
- protected function DoApplyDeadzoneRight ( ) : Boolean ;
- public procedure RequestState ( ) ;