Companion

Holds the buttons a gamepad reports.

Properties

Link copied to clipboard

The back (view, select, minus) button.

Link copied to clipboard
val COUNT: Int

The number of gamepad buttons; every button EventPump reports has an index below it.

Link copied to clipboard

Down on the directional pad.

Link copied to clipboard

Left on the directional pad.

Link copied to clipboard

Right on the directional pad.

Link copied to clipboard

Up on the directional pad.

Link copied to clipboard

The right face button: B on Xbox, circle on PlayStation, A on Nintendo.

Link copied to clipboard

The guide (home, logo) button.

Link copied to clipboard

The left shoulder button above the left trigger.

Link copied to clipboard

A press on the left stick.

Link copied to clipboard

The top face button: Y on Xbox, triangle on PlayStation, X on Nintendo.

Link copied to clipboard

The right shoulder button above the right trigger.

Link copied to clipboard

A press on the right stick.

Link copied to clipboard

The bottom face button: A on Xbox, cross on PlayStation, B on Nintendo.

Link copied to clipboard

The start (menu, options, plus) button.

Link copied to clipboard

The left face button: X on Xbox, square on PlayStation, Y on Nintendo.