From 204ae74aebe11f1adbf3f76b4aea335afacdeaa9 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Fri, 2 Jun 2006 23:41:36 +0000 Subject: 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 --- hid.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'hid.h') 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 */ -- cgit v1.2.1