Skip to content

Gamepad

themixray edited this page Dec 12, 2021 · 9 revisions

Original

Is pressed

Is button pressed

pygwin.gamepad.isPressed(btn)
  • btn Gamepad button

Returns bool

Get pressed

Get buttons pressed

pygwin.gamepad.getPressed()

Returns dict

Joysticks

Gamepad joysticks

Direction Table
Direction X Y
Up 0 32767
Down 0 -32767
Left -32767 0
Right 32767 0

Left joystick

pygwin.gamepad.leftJoystick

Returns list

Right joystick

pygwin.gamepad.rightJoystick

Returns list

Reset

Reset gamepad

pygwin.gamepad.reset()

Returns None

Close

Close gamepad

pygwin.gamepad.close()

Returns None

Clone this wiki locally