aboutsummaryrefslogtreecommitdiff
path: root/hid.h
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2004-11-28 01:27:47 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2004-11-28 01:27:47 +0000
commit923e18b2face0b0b0f13e202a894be56242fe4e0 (patch)
tree838186d3232da6a4dfd754a8665d5831d736fff7 /hid.h
parenta88927720982bada5b9da445bac7653858cde587 (diff)
fixed a number of annoying bugs in MacOS X; cleaned up code; now multiple [hid]s work at the same time
svn path=/trunk/externals/hcs/hid/; revision=2329
Diffstat (limited to 'hid.h')
-rw-r--r--hid.h23
1 files changed, 16 insertions, 7 deletions
diff --git a/hid.h b/hid.h
index 7db864b..c406e43 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.10 $";
+static char *version = "$Revision: 1.11 $";
/*------------------------------------------------------------------------------
* CLASS DEF
@@ -30,18 +30,26 @@ typedef struct _hid
t_int x_delay;
t_int x_started;
t_int x_device_open;
- t_int x_instance_count;
} t_hid;
/*------------------------------------------------------------------------------
- * GLOBALS
+ * GLOBAL DEFINES
*/
-/* TODO: what are these for again? */
-char *deviceList[64];
-char *typeList[256];
-char *codeList[256];
+#define DEFAULT_DELAY 5
+
+
+/*------------------------------------------------------------------------------
+ * GLOBAL VARIABLES
+ */
+
+/*
+ * count the number of instances of this object so that certain free()
+ * functions can be called only after the final instance is detroyed.
+ */
+t_int hid_instance_count;
+
/*------------------------------------------------------------------------------
* FUNCTION PROTOTYPES FOR DIFFERENT PLATFORMS
@@ -56,6 +64,7 @@ t_int hid_open_device(t_hid *x, t_int device_number);
t_int hid_close_device(t_hid *x);
t_int hid_build_device_list(t_hid* x);
t_int hid_get_events(t_hid *x) ;
+void hid_print(t_hid* x);
void hid_platform_specific_free(t_hid *x);
#endif /* #ifndef _HID_H */