mirror of
https://github.com/RevCurtisP/C02.git
synced 2024-07-13 11:28:58 +00:00
16 lines
430 B
Plaintext
16 lines
430 B
Plaintext
|
/* Joystick Library Header File for VIC-20 */
|
||
|
|
||
|
#define JYSTKS $01 //Number of Joysticks
|
||
|
|
||
|
#define JOYUP $04 //Bit 2 - Up
|
||
|
#define JOYDN $08 //Bit 3 - Down
|
||
|
#define JOYLF $10 //Bit 4 - Left
|
||
|
#define JOYRT $01 //Bit 1 - Right
|
||
|
#define JOYB0 $20 //Bit 5 - Button
|
||
|
|
||
|
/* Read Joystick State *
|
||
|
* Args: n = Joystick Number *
|
||
|
* Returns: Joystick Status *
|
||
|
* $FF = Invalid Argument */
|
||
|
char joystk();
|