18 lines
312 B
C
18 lines
312 B
C
#ifndef C64_JOYSTICK_H
|
|
#define C64_JOYSTICK_H
|
|
|
|
#include "types.h"
|
|
|
|
extern sbyte joyx[2], joyy[2];
|
|
extern bool joyb[2];
|
|
|
|
// poll joystick input for joystick 0 or 1 and place
|
|
// the x/y direction and the button status into the joyx/y/b
|
|
// arrays for
|
|
|
|
void joy_poll(char n);
|
|
|
|
#pragma compile("joystick.c")
|
|
|
|
#endif
|