10 struct device_event_motion {
15 struct device_event_button {
22 typedef union device_event {
24 struct device_event_motion motion;
25 struct device_event_button button;
33 void (*destroy)(void);
41 int (*getevent)(device_event*);
44 void register_all(void);
46 /* name 0 to auto-detect */
47 struct device *dev_init(const char *name);
48 void dev_destroy(void);
50 void set_port(const char *s);
51 const char *get_port(void);
53 #endif /* DEVICE_H_ */