23 |
|
|
24 |
|
#ifdef __BEOS__ |
25 |
|
#include <KernelKit.h> |
26 |
– |
#include <device/Joystick.h> |
26 |
|
#endif |
27 |
|
|
28 |
|
#ifdef AMIGA |
118 |
|
void c64_ctor1(void); |
119 |
|
void c64_ctor2(void); |
120 |
|
void c64_dtor(void); |
121 |
< |
void open_close_joysticks(bool oldjoy1, bool oldjoy2, bool newjoy1, bool newjoy2); |
121 |
> |
void open_close_joysticks(int oldjoy1, int oldjoy2, int newjoy1, int newjoy2); |
122 |
|
uint8 poll_joystick(int port); |
123 |
|
void thread_func(void); |
124 |
|
|
138 |
|
|
139 |
|
private: |
140 |
|
static long thread_invoc(void *obj); |
141 |
+ |
void open_close_joystick(int port, int oldjoy, int newjoy); |
142 |
|
|
143 |
< |
BJoystick *joy[2]; // Joystick objects |
143 |
> |
void *joy[2]; // Joystick objects (BJoystick or BDigitalPort) |
144 |
> |
bool joy_geek_port[2]; // Flag: joystick on GeekPort? |
145 |
|
thread_id the_thread; |
146 |
|
sem_id pause_sem; |
147 |
|
sem_id sound_sync_sem; |
148 |
< |
double start_time; |
148 |
> |
bigtime_t start_time; |
149 |
|
#endif |
150 |
|
|
151 |
|
#ifdef AMIGA |