Simple WIZ Joystick Demo/Library for Bennu by Madman 

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

You can test the demo.prg for a sample and see joystick.inc for the rest.
In the joystick.inc code you can predefine aliases (e.g. for 2 Player games).
Sample: The alias JOY[ESC] is set, if the buttons L+R+Menu are pressed at the same time.
This is what you need to do to exit the demo.

You can uncomment the others to check for JOY2[UP] in your code instead of JOY[BY] if you prefer.

Happy coding.

Madman

