aboutsummaryrefslogtreecommitdiff
path: root/hid.h
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-06-02 23:41:36 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-06-02 23:41:36 +0000
commit204ae74aebe11f1adbf3f76b4aea335afacdeaa9 (patch)
treeaccfd0c9dcc99ea51fcf72e3be160fd5a66c88b2 /hid.h
parente2dfa073d484b3e165715c20fcef162d8b83513d (diff)
first attempt at having one instance do all of the device polling, based on clock_getlogicaltime(). It works for multiple instances in one patch, but does not work for multiple instances in different patches (i.e. they both still seem to get events...)
svn path=/trunk/externals/hcs/hid/; revision=5159
Diffstat (limited to 'hid.h')
-rw-r--r--hid.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/hid.h b/hid.h
index 23b65a4..6a2fd8c 100644
--- a/hid.h
+++ b/hid.h
@@ -15,7 +15,7 @@
#define HID_MAJOR_VERSION 0
#define HID_MINOR_VERSION 7
-/* static char *version = "$Revision: 1.25 $"; */
+/* static char *version = "$Revision: 1.26 $"; */
/*------------------------------------------------------------------------------
* GLOBAL DEFINES
@@ -42,6 +42,7 @@ typedef struct _hid
t_int x_fd;
void *x_ff_device;
short x_device_number;
+ short x_instance;
t_int x_has_ff;
t_int x_started;
t_int x_device_open;
@@ -62,6 +63,9 @@ typedef struct _hid
*/
t_int hid_instance_count;
+/* this is used to test for the first instance to execute */
+double last_execute_time[MAX_DEVICES];
+
extern unsigned short global_debug_level;
/* built up when the elements of an open device are enumerated */