Skip to content

Gamepad

Hyomoto edited this page Nov 25, 2020 · 10 revisions
Jump To Go Back Arguments Methods Variables

Gamepad()

Implements: None

No description.

// no example

Arguments

Name Type Purpose
None

Methods

Jump To top input inputAxis set_deadzone

input( contant, gamepad )

Returns: N/A undefined

Name Type Purpose
contant int The gamepad button constant to bind.
gamepad Gamepad This should generally be self, as the inputs much reach back to Gamepad to find the pad index.

A wrapper GML's gamepad button inputs.


inputAxis( contant, gamepad, _gamepad )

Returns: N/A undefined

Name Type Purpose
contant int The gamepad axis constant to bind.
gamepad Gamepad This should generally be self, as the inputs much reach back to Gamepad to find the pad index.
_gamepad undef none provided

A wrapper GML's gamepad axis inputs.


set_deadzone( _amount )

Returns: N/A undefined

Name Type Purpose
_amount undef none provided

Variables

Jump To top
  • port - The port this gamepad is plugged into. You can get the port number via port.portId if this gamepad is plugged into a port.
  • padIndex - The pad index this Gamepad is used.
Clone this wiki locally