Update of /cvsroot/pure-data/externals/hcs/hid In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4146
Modified Files: TODO hid-help.pd hid.c hid_darwin.c hid_linux.c Log Message: prepping for release, fixed a couple very minor bugs
Index: hid_darwin.c =================================================================== RCS file: /cvsroot/pure-data/externals/hcs/hid/hid_darwin.c,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** hid_darwin.c 15 Nov 2004 04:05:39 -0000 1.9 --- hid_darwin.c 15 Nov 2004 05:17:45 -0000 1.10 *************** *** 52,57 **** #include "hid.h"
! //#define DEBUG(x) ! #define DEBUG(x) x
/*============================================================================== --- 52,57 ---- #include "hid.h"
! #define DEBUG(x) ! //#define DEBUG(x) x
/*============================================================================== *************** *** 116,120 **** case kHIDPage_Button: sprintf(linux_type, "key"); ! sprintf(linux_code, "btn_%ld", element->usage); break; } --- 116,121 ---- case kHIDPage_Button: sprintf(linux_type, "key"); ! /* HID Manager button numbers start at 1, [hid] start at 0 */ ! sprintf(linux_code, "btn_%ld", element->usage - 1); break; } *************** *** 174,178 **** post(""); ! post(" TYPE\t\tCODE\tEVENT NAME"); post("-----------------------------------------------------------"); for(i=0; i<numElements; i++) --- 175,179 ---- post(""); ! post(" TYPE\tCODE\tEVENT NAME"); post("-----------------------------------------------------------"); for(i=0; i<numElements; i++)
Index: TODO =================================================================== RCS file: /cvsroot/pure-data/externals/hcs/hid/TODO,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** TODO 15 Nov 2004 04:05:39 -0000 1.5 --- TODO 15 Nov 2004 05:17:45 -0000 1.6 *************** *** 94,100 **** --- 94,108 ----
============================================================================== + = device 0 gets events for all available devices + + - it might be useful to have device #0 open all available devices and output + the events. + + ============================================================================== = mapping object ideas
+ - log
+ - exponential
______________________________________________________________________________
Index: hid-help.pd =================================================================== RCS file: /cvsroot/pure-data/externals/hcs/hid/hid-help.pd,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** hid-help.pd 15 Nov 2004 04:05:39 -0000 1.10 --- hid-help.pd 15 Nov 2004 05:17:45 -0000 1.11 *************** *** 1,19 **** ! #N canvas 148 25 908 628 10; ! #X msg 430 325 rel rel_y -6 1.10049e+09; #X obj 430 304 prepend set; ! #X obj 149 473 route rel_x rel_y; ! #X floatatom 149 493 5 0 0 0 - - -; ! #X floatatom 206 493 5 0 0 0 - - -; #X msg 148 77 start; #X msg 174 96 stop; #X floatatom 521 385 12 0 0 1 time - -; #X obj 428 365 unpack s s f f; ! #X msg 239 57 open 0; ! #X msg 246 75 open 1; ! #X msg 253 93 open 2; ! #X msg 259 111 open 3; ! #X msg 265 129 open 4; ! #X floatatom 206 454 7 0 0 0 - - -; ! #X floatatom 264 454 7 0 0 0 - - -; #X obj 86 81 tgl 35 0 empty empty empty 0 -6 0 8 -24198 -1 -1 25 25 ; --- 1,19 ---- ! #N canvas 148 25 912 632 10; ! #X msg 430 325 rel rel_x 0 1.63404e+09; #X obj 430 304 prepend set; ! #X obj 169 458 route rel_x rel_y; ! #X floatatom 169 478 5 0 0 0 - - -; ! #X floatatom 226 478 5 0 0 0 - - -; #X msg 148 77 start; #X msg 174 96 stop; #X floatatom 521 385 12 0 0 1 time - -; #X obj 428 365 unpack s s f f; ! #X msg 239 37 open 0; ! #X msg 246 55 open 1; ! #X msg 253 73 open 2; ! #X msg 259 91 open 3; ! #X msg 265 109 open 4; ! #X floatatom 226 439 7 0 0 0 - - -; ! #X floatatom 284 439 7 0 0 0 - - -; #X obj 86 81 tgl 35 0 empty empty empty 0 -6 0 8 -24198 -1 -1 25 25 ; *************** *** 43,49 **** #X obj 109 241 tgl 17 0 empty empty console_print 19 9 1 9 -262131 -1 -1 0 1; ! #X floatatom 289 398 5 0 0 1 ev_syn - -; ! #X obj 262 397 +; ! #X msg 262 377 1; #X msg 336 136 close; #X msg 336 113 refresh; --- 43,49 ---- #X obj 109 241 tgl 17 0 empty empty console_print 19 9 1 9 -262131 -1 -1 0 1; ! #X floatatom 309 383 5 0 0 1 ev_syn - -; ! #X obj 282 382 +; ! #X msg 282 362 1; #X msg 336 136 close; #X msg 336 113 refresh; *************** *** 56,61 **** #X text 472 589 $Revision$$Date$; #X text 473 602 $Author$; ! #X obj 206 433 route abs_x abs_y abs_z; ! #X floatatom 322 454 7 0 0 0 - - -; #X msg 398 180 poll 20; #X msg 336 180 poll 2; --- 56,61 ---- #X text 472 589 $Revision$$Date$; #X text 473 602 $Author$; ! #X obj 226 418 route abs_x abs_y abs_z; ! #X floatatom 342 439 7 0 0 0 - - -; #X msg 398 180 poll 20; #X msg 336 180 poll 2; *************** *** 66,92 **** of it could change without notice !!!; #X obj 248 225 hid 1; ! #X obj 93 345 route key rel abs syn; ! #X obj 53 552 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0 1 ! ; ! #X obj 93 552 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0 1 ; ! #X obj 134 552 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0 1; ! #X obj 175 552 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0 1; ! #X obj 216 552 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0 1; ! #X obj 257 552 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0 1; ! #X obj 297 552 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0 1; ! #X obj 338 552 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0 1; ! #X obj 379 552 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0 1; ! #X msg 270 149 open 5; ! #X obj 53 519 route btn_0 btn_1 btn_2 btn_3 btn_4 btn_5 btn_6 btn_7 btn_8 btn_9; ! #X obj 420 552 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0 1; #X connect 1 0 0 0; --- 66,92 ---- of it could change without notice !!!; #X obj 248 225 hid 1; ! #X obj 113 330 route key rel abs syn; ! #X obj 73 537 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0 1 ; ! #X obj 113 537 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0 1; ! #X obj 154 537 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0 1; ! #X obj 195 537 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0 1; ! #X obj 236 537 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0 1; ! #X obj 277 537 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0 1; ! #X obj 317 537 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0 1; ! #X obj 358 537 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0 1; ! #X obj 399 537 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0 ! 1; ! #X msg 270 129 open 5; ! #X obj 73 504 route btn_0 btn_1 btn_2 btn_3 btn_4 btn_5 btn_6 btn_7 btn_8 btn_9; ! #X obj 440 537 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0 1; #X connect 1 0 0 0;
Index: hid_linux.c =================================================================== RCS file: /cvsroot/pure-data/externals/hcs/hid/hid_linux.c,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** hid_linux.c 15 Nov 2004 04:05:39 -0000 1.5 --- hid_linux.c 15 Nov 2004 05:17:45 -0000 1.6 *************** *** 223,227 **** post(""); ! post(" TYPE\t\tCODE\tEVENT NAME"); post("-----------------------------------------------------------");
--- 223,227 ---- post(""); ! post(" TYPE\tCODE\tEVENT NAME"); post("-----------------------------------------------------------");
*************** *** 237,241 **** char hid_code[7]; hid_convert_linux_buttons_to_numbers(event_code,hid_code); ! post(" %s\t\t%s\t%s", ev[event_type] ? ev[event_type] : "?", hid_code, --- 237,241 ---- char hid_code[7]; hid_convert_linux_buttons_to_numbers(event_code,hid_code); ! post(" %s\t%s\t%s", ev[event_type] ? ev[event_type] : "?", hid_code,
Index: hid.c =================================================================== RCS file: /cvsroot/pure-data/externals/hcs/hid/hid.c,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** hid.c 14 Nov 2004 22:29:43 -0000 1.13 --- hid.c 15 Nov 2004 05:17:45 -0000 1.14 *************** *** 30,35 **** */
! //#define DEBUG(x) ! #define DEBUG(x) x
#define DEFAULT_DELAY 5 --- 30,35 ---- */
! #define DEBUG(x) ! //#define DEBUG(x) x
#define DEFAULT_DELAY 5