diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2006-06-02 23:41:36 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2006-06-02 23:41:36 +0000 |
commit | 204ae74aebe11f1adbf3f76b4aea335afacdeaa9 (patch) | |
tree | accfd0c9dcc99ea51fcf72e3be160fd5a66c88b2 /hid.h | |
parent | e2dfa073d484b3e165715c20fcef162d8b83513d (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.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 */ |