TGamolfCustomJoystickService.getDPad Method

Definition

Return the DPad value between (0-359° or 65535) Compare it to Top, TopRight/RightTop, Right, BottomRight/RightBottom, Bottom, BottomLeft/LeftBottom, Left, LeftTop/TopLeft, Center values from TJoystickDPad enumeration

Delphi
function getDPad(JoystickID: byte; FromXYWhenNoDPadAvailable: boolean = False): word

Parameters

JoystickID
Byte
FromXYWhenNoDPadAvailable
Boolean

Returns

Word