1
0
mirror of https://github.com/RevCurtisP/C02.git synced 2024-06-03 04:29:31 +00:00
C02/include/c64/joystk.h02
2018-09-17 11:34:26 -04:00

16 lines
424 B
Plaintext

/* Joystick Module Header File for C64 */
#define JYSTKS 2 //Number of Joysticks
#define JOYUP $01 //Bit 0 - Up
#define JOYDN $02 //Bit 1 - Down
#define JOYLF $04 //Bit 2 - Left
#define JOYRT $08 //Bit 3 - Right
#define JOYB0 $10 //Bit 4 - Button
/* Read Joystick State *
* Args: n = Joystick Number *
* Returns: Joystick Status *
* $FF = Invalid Argument */
char joystk();