X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=blobdiff_plain;f=src%2Fsball.h;fp=src%2Fsball.h;h=e26d336c0a501524dbe02321e0911beba4e75b2c;hp=e12b12c3334d21a0919220403ef67240bfafca9a;hb=223ecd536161ba06dd1d0f39ccf911b082742b92;hpb=cfa71f2849ee3482ebe617931972657b6a69c930 diff --git a/src/sball.h b/src/sball.h index e12b12c..e26d336 100644 --- a/src/sball.h +++ b/src/sball.h @@ -1,36 +1,36 @@ -#ifndef SBALL_H_ -#define SBALL_H_ - -enum { - SBALL_EV_NONE, - SBALL_EV_MOTION, - SBALL_EV_BUTTON -}; - -struct sball_event_motion { - int type; - int motion[6]; -}; - -struct sball_event_button { - int type; - int id; - int pressed; - unsigned int state; -}; - -typedef union sball_event { - int type; - struct sball_event_motion motion; - struct sball_event_button button; -} sball_event; - -int sball_init(void); -void sball_shutdown(void); - -int sball_getdev(void); - -int sball_pending(void); -int sball_getevent(sball_event *ev); - -#endif /* SBALL_H_ */ +#ifndef SBALL_H_ +#define SBALL_H_ + +enum { + SBALL_EV_NONE, + SBALL_EV_MOTION, + SBALL_EV_BUTTON +}; + +struct sball_event_motion { + int type; + int motion[6]; +}; + +struct sball_event_button { + int type; + int id; + int pressed; + unsigned int state; +}; + +typedef union sball_event { + int type; + struct sball_event_motion motion; + struct sball_event_button button; +} sball_event; + +int sball_init(void); +void sball_shutdown(void); + +int sball_getdev(void); + +int sball_pending(void); +int sball_getevent(sball_event *ev); + +#endif /* SBALL_H_ */