1
0
mirror of https://github.com/RevCurtisP/C02.git synced 2024-11-22 16:34:15 +00:00
C02/include/c64/paddle.h02
2018-09-17 11:34:26 -04:00

21 lines
584 B
Plaintext

/* 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();