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_darwin.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'hid_darwin.c') diff --git a/hid_darwin.c b/hid_darwin.c index b03eaa7..ba8e0ff 100644 --- a/hid_darwin.c +++ b/hid_darwin.c @@ -624,8 +624,6 @@ void hid_platform_specific_info(t_hid *x) void hid_get_events(t_hid *x) { - //debug_print(LOG_DEBUG,"hid_get_events"); - unsigned int i; pRecDevice pCurrentHIDDevice; t_hid_element *current_element; @@ -660,12 +658,6 @@ void hid_get_events(t_hid *x) HIDGetElementValue(pCurrentHIDDevice, (pRecElement)current_element->os_pointer); } - if(current_element->previous_value != current_element->value) - { - hid_output_event(x, current_element); - if(!current_element->relative) - current_element->previous_value = current_element->value; - } } } -- cgit v1.2.1