Project

General

Profile

183 markw
#ifndef JOYSTICK_H
#define JOYSTICK_H
46 markw
struct joystick_status
{
49 markw
int x_;
int y_;
int fire_;
262 markw
int escape_;
803 markw
int keyPressed_;
46 markw
};

enum JoyWait {WAIT_QUIET, WAIT_FIRE, WAIT_MOVE, WAIT_EITHER};

void joystick_poll(struct joystick_status * status);
void joystick_wait(struct joystick_status * status, enum JoyWait waitFor);

183 markw
#endif