1
0
mirror of https://github.com/RevCurtisP/C02.git synced 2024-11-25 21:33:44 +00:00
C02/include/c64/paddle.h02

21 lines
584 B
Plaintext
Raw Normal View History

/* Psddle Controllers Header File for C64 */
#define BUTTNS 4 //Number of Paddle Buttons
#define PADDLS 4 //Number of Paddles
/* Get Paddle Button Status *
* Args: b = Button Number *
* Same as Paddle Number *
* Returns: $FF if Button Pressed *
* $00 if Not Pressed */
void button();
/* Get Paddle Status *
* Args: p = Paddle Number *
* 0 - Port 1 Paddle X *
* 1 - Port 1 Paddle Y *
* 2 - Port 2 Paddle X *
* 3 - Port 2 Paddle Y *
* Returns: Paddle Value (0-255) */
void paddle();