Table of Contents

Engine

(NOTE) Game pad is a object for getting game pad input.

Methods Properties Base Classes Derived Classes
IsButtonHeld GamepadIndex eventobject
IsButtonPressed IsActive
IsButtonReleased LeftStick
TimeButtonHeld LeftStickDelta
Vibrate LeftTrigger
RightStick
RightStickDelta
RightTrigger

Properties


GamepadIndex : integer

Index of this gamepad.

var GamepadIndex : Integer

IsActive : boolean

Is this controller turned on and plugged in.

var IsActive : Boolean

LeftStick : real2

Current offset [-1,1] from the center of the left stick.

var LeftStick : Real2

LeftStickDelta : real2

Change in the left stick this frame.

var LeftStickDelta : Real2

LeftTrigger : real

Value of how much the Left Trigger is down. Range [0,1].

var LeftTrigger : Real

RightStick : real2

Current offset [-1,1] from the center of the right stick.

var RightStick : Real2

RightStickDelta : real2

Change in the right stick this frame.

var RightStickDelta : Real2

RightTrigger : real

Value of how much the Right Trigger is down. Range [0,1].

var RightTrigger : Real

Methods


IsButtonHeld : boolean

Is the button currently being held down. |Name|Type|Description| |---|---|---| |index|integer| |

function IsButtonHeld(index : Integer) : Boolean

IsButtonPressed : boolean

Has the button just been pressed this frame. |Name|Type|Description| |---|---|---| |index|integer| |

function IsButtonPressed(index : Integer) : Boolean

IsButtonReleased : boolean

Is the button just been released. |Name|Type|Description| |---|---|---| |index|integer| |

function IsButtonReleased(index : Integer) : Boolean

TimeButtonHeld : real

How long has this button been held down. |Name|Type|Description| |---|---|---| |index|integer| |

function TimeButtonHeld(index : Integer) : Real

Vibrate : Void

Vibrate this controller for a given time. Speed is a value between zero and one. |Name|Type|Description| |---|---|---| |time|real| | |LeftSpeed|real| | |RightSpeed|real| |

function Vibrate(time : Real, LeftSpeed : Real, RightSpeed : Real)