From e12059711346f72f73cb3595548f75d88aef56d1 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Sun, 7 Nov 2004 16:28:25 +0000 Subject: cleaned up the code a fair amount, but there are still lots of bugs bugs bugs... svn path=/trunk/externals/hcs/hid/; revision=2238 --- hid.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'hid.h') 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 */ -- cgit v1.2.1