aboutsummaryrefslogtreecommitdiff
path: root/hid.h
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2004-11-07 16:28:25 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2004-11-07 16:28:25 +0000
commite12059711346f72f73cb3595548f75d88aef56d1 (patch)
treefd910602259935d5627e923d948dcd5672122d72 /hid.h
parent4aa91d68179f533679edf1ab69405d47ace09ec4 (diff)
cleaned up the code a fair amount, but there are still lots of bugs bugs bugs...
svn path=/trunk/externals/hcs/hid/; revision=2238
Diffstat (limited to 'hid.h')
-rw-r--r--hid.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/hid.h b/hid.h
index f94aa53..cc8fd32 100644
--- a/hid.h
+++ b/hid.h
@@ -14,7 +14,7 @@
#define HID_MAJOR_VERSION 0
#define HID_MINOR_VERSION 1
-static char *version = "$Revision: 1.8 $";
+static char *version = "$Revision: 1.9 $";
/*------------------------------------------------------------------------------
* CLASS DEF
@@ -27,11 +27,11 @@ typedef struct _hid
t_int x_fd;
t_symbol *x_devname;
t_int x_device_number;
- long x_locID;
t_clock *x_clock;
t_int x_delay;
t_int x_started;
t_int x_device_open;
+ t_int x_instance_count;
} t_hid;
@@ -48,11 +48,15 @@ char *codeList[256];
* FUNCTION PROTOTYPES FOR DIFFERENT PLATFORMS
*/
+/* support functions */
+void hid_output_event(t_hid *x,
+ char *type, char *code, t_float value, t_float timestamp);
+
/* generic, cross-platform functions */
t_int hid_open_device(t_hid *x, t_int device_number);
t_int hid_close_device(t_hid *x);
-t_int hid_devicelist_refresh(t_hid* x);
-t_int hid_output_events(t_hid *x) ;
+t_int hid_build_device_list(t_hid* x);
+t_int hid_get_events(t_hid *x) ;
void hid_platform_specific_free(t_hid *x);
#endif /* #ifndef _HID_H */