Gamepad

An attached game controller with a traditional setup

Only the controllers SDL supports out of the box will work, and no plans exist to expand this capability

Disabled Default Constructor

A disabled default is present on this object. To use it, use one of the other constructors or a factory function.

Members

Properties

dpadDown
bool dpadDown [@property getter]

If Down on the dpad is being pressed

dpadLeft
bool dpadLeft [@property getter]

If Left on the dpad is being pressed

dpadRight
bool dpadRight [@property getter]

If Right on the dpad is being pressed

dpadUp
bool dpadUp [@property getter]

If Up on the dpad is being pressed

faceDown
bool faceDown [@property getter]

If the bottom face button is being pressed (A on an XBOX controller)

faceLeft
bool faceLeft [@property getter]

If the left face button is being pressed (X on an XBOX controller)

faceRight
bool faceRight [@property getter]

If the right face button is being pressed (B on an XBOX controller)

faceUp
bool faceUp [@property getter]

If the top face button is being pressed (Y on an XBOX controller)

leftShoulder
bool leftShoulder [@property getter]

If the left shoulder button is being pressed in

leftStick
bool leftStick [@property getter]

If the left stick is being pressed in

leftX
float leftX [@property getter]

The X value of the left stick

main
bool main [@property getter]

If the main button is being pressed (the center X on an XBOX controller)

rightShoulder
bool rightShoulder [@property getter]

If the right shoulder button is being pressed in

rightStick
bool rightStick [@property getter]

If the right stick is being pressed in

rightX
float rightX [@property getter]

The X value of the right stick

rightY
float rightY [@property getter]

The Y value of the right stick

select
bool select [@property getter]

If the select button is being pressed (back on an XBOX controller)

start
bool start [@property getter]

If the start button is being pressed

triggerLeft
float triggerLeft [@property getter]

How much the left trigger is being pressed

triggerRight
float triggerRight [@property getter]

How much the right trigger is being pressed

Meta