From d7b2615d73802a9e39453cb1974cd65710d5ef36 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Sat, 27 May 2006 00:57:15 +0000 Subject: seemed to fix the mac crasher bug caused by HIDReleaseBuildList wierdness; cleaned up things a bit and made it possible to open devices by type svn path=/trunk/externals/hcs/hid/; revision=5138 --- hid_linux.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'hid_linux.c') diff --git a/hid_linux.c b/hid_linux.c index c1dab26..c6ea2f6 100644 --- a/hid_linux.c +++ b/hid_linux.c @@ -132,7 +132,7 @@ t_symbol* hid_convert_linux_keys(__u16 linux_code) void hid_print_element_list(t_hid *x) { - DEBUG(post("hid_print_element_list");); + debug_print(LOG_DEBUG,"hid_print_element_list"); unsigned long bitmask[EV_MAX][NBITS(KEY_MAX)]; // char event_type_string[256]; // char event_code_string[256]; @@ -252,7 +252,7 @@ void hid_print_element_list(t_hid *x) void hid_print_device_list(void) { - DEBUG(post("hid_print_device_list");); + debug_print(LOG_DEBUG,"hid_print_device_list"); int i,fd; char device_output_string[256] = "Unknown"; char dev_handle_name[20] = "/dev/input/event0"; @@ -350,7 +350,7 @@ void hid_ff_print( t_hid *x ) t_int hid_get_events(t_hid *x) { - DEBUG(post("hid_get_events");); + debug_print(LOG_DEBUG,"hid_get_events"); /* for debugging, counts how many events are processed each time hid_read() is called */ DEBUG(t_int event_counter = 0;); @@ -411,7 +411,7 @@ void hid_print(t_hid* x) t_int hid_open_device(t_hid *x, t_int device_number) { - DEBUG(post("hid_open_device");); + debug_print(LOG_DEBUG,"hid_open_device"); char device_name[256] = "Unknown"; char dev_handle_name[20] = "/dev/input/event0"; @@ -453,7 +453,7 @@ t_int hid_open_device(t_hid *x, t_int device_number) */ t_int hid_close_device(t_hid *x) { - DEBUG(post("hid_close_device");); + debug_print(LOG_DEBUG,"hid_close_device"); if (x->x_fd <0) return 0; else @@ -462,7 +462,7 @@ t_int hid_close_device(t_hid *x) t_int hid_build_device_list(t_hid *x) { - DEBUG(post("hid_build_device_list");); + debug_print(LOG_DEBUG,"hid_build_device_list"); /* the device list should be refreshed here */ /* * since in GNU/Linux the device list is the input event devices -- cgit v1.2.1