User Tools

Site Tools


hardware:gamepads

Gamepad Ports

The front gamepad ports can be read at $2008 and $2009. Writing to these addresses will not do anything. A byte read from one of these locations will return 6 binary button states from the respective controller. Consecutive reads to the same port will toggle the “select” line on the controller port, causing the controller to change which six button states are being returned. More on reading gamepads can be found in its own article.

First read:

Button Mask
A16
Start32
Up8
Down4

Second read:

Button Mask
B16
C32
Left2
Right1
Up8
Down4
hardware/gamepads.txt · Last modified: 2025/09/20 02:38 by clyde