Project

General

Profile

#ifndef JOYSTICK_H
#define JOYSTICK_H

struct joystick_status
{
int x_;
int y_;
int fire_;
int escape_;
int keyPressed_;
};

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);

#endif
(23-23/46)