Here comes a Joystick Library, which might be useful for the one or other coder.
Quote:
Copy the file “joystick.inc” to your game folder.
In your programm use#include “joystick.inc”;
and in the main process or where needed, call the function
init_controls();
This will setup a process to get the Wiz key status.
After that you can check the JOY array, e.g.JOY[BY] = Button Y
JOY[START] = Menu Button
JOY[SELECT] = Select Button