aboutsummaryrefslogtreecommitdiff
path: root/hid_darwin.c
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_darwin.c
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_darwin.c')
-rw-r--r--hid_darwin.c8
1 files changed, 0 insertions, 8 deletions
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;
- }
}
}