-#ifndef SBALL_H_\r
-#define SBALL_H_\r
-\r
-enum {\r
- SBALL_EV_NONE,\r
- SBALL_EV_MOTION,\r
- SBALL_EV_BUTTON\r
-};\r
-\r
-struct sball_event_motion {\r
- int type;\r
- int motion[6];\r
-};\r
-\r
-struct sball_event_button {\r
- int type;\r
- int id;\r
- int pressed;\r
- unsigned int state;\r
-};\r
-\r
-typedef union sball_event {\r
- int type;\r
- struct sball_event_motion motion;\r
- struct sball_event_button button;\r
-} sball_event;\r
-\r
-int sball_init(void);\r
-void sball_shutdown(void);\r
-\r
-int sball_getdev(void);\r
-\r
-int sball_pending(void);\r
-int sball_getevent(sball_event *ev);\r
-\r
-#endif /* SBALL_H_ */\r
+#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_ */