aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2005-04-28 05:56:36 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2005-04-28 05:56:36 +0000
commit09a36bc7935a0ef212762406c0b9492bb7878669 (patch)
tree4f4cfaf5ff36b15f1619d0f50cfe2c3ec76f275c
parenta4d12aa429a4d52810f7de54e0f37114600008b6 (diff)
removed the timestamp from the output
svn path=/trunk/externals/hcs/hid/; revision=2845
-rw-r--r--doc/hid-help.pd143
-rw-r--r--hid_darwin.c22
2 files changed, 83 insertions, 82 deletions
diff --git a/doc/hid-help.pd b/doc/hid-help.pd
index 3eb2e0b..80ffe39 100644
--- a/doc/hid-help.pd
+++ b/doc/hid-help.pd
@@ -1,15 +1,13 @@
-#N canvas 71 186 913 626 10;
-#X msg 455 295 rel rel_y 1;
+#N canvas 159 95 913 626 10;
+#X msg 455 295 syn syn_report 0;
#X obj 455 274 prepend set;
#X floatatom 37 484 5 0 0 0 - - -;
#X floatatom 93 484 5 0 0 0 - - -;
#X msg 158 121 start;
#X msg 158 141 stop;
-#X msg 261 34 open 0;
-#X msg 268 52 open 1;
-#X msg 275 70 open 2;
-#X msg 281 88 open 3;
-#X msg 287 106 open 4;
+#X msg 261 110 open 0;
+#X msg 268 128 open 1;
+#X msg 275 146 open 2;
#X floatatom 84 439 7 0 0 0 - - -;
#X floatatom 138 439 7 0 0 0 - - -;
#X obj 68 122 tgl 35 0 empty empty empty 0 -6 0 8 -24198 -1 -1 0 25
@@ -49,7 +47,7 @@
#X text 49 588 (C) Copyright 2004 Hans-Christoph Steiner <hans@at.or.at>
;
#X text 266 602 released under the GNU GPL;
-#X text 472 589 $Revision: 1.16 $$Date: 2005-04-28 04:29:58 $;
+#X text 472 589 $Revision: 1.17 $$Date: 2005-04-28 05:56:36 $;
#X text 473 602 $Author: eighthave $;
#X floatatom 192 439 7 0 0 0 - - -;
#X msg 428 185 poll 20;
@@ -77,7 +75,6 @@ of it could change without notice !!!;
1;
#X obj 335 537 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0
1;
-#X msg 292 126 open 5;
#X obj 9 504 route btn_0 btn_1 btn_2 btn_3 btn_4 btn_5 btn_6 btn_7
btn_8 btn_9;
#X obj 376 537 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0
@@ -318,67 +315,71 @@ btn_8 btn_9;
#X obj 37 464 route rel_x rel_y rel_z rel_wheel;
#X floatatom 206 484 5 0 0 0 - - -;
#X obj 455 335 unpack s s f;
+#X msg 248 91 open \$1;
+#X obj 248 73 hradio 15 1 0 8 empty empty empty 0 -6 0 8 -262144 -1
+-1 0;
+#X floatatom 235 94 1 0 0 0 - - -;
#X connect 1 0 0 0;
-#X connect 4 0 88 0;
-#X connect 5 0 88 0;
-#X connect 6 0 88 0;
-#X connect 7 0 88 0;
-#X connect 8 0 88 0;
-#X connect 9 0 88 0;
-#X connect 10 0 88 0;
-#X connect 13 0 88 0;
-#X connect 34 0 33 0;
-#X connect 34 0 17 0;
-#X connect 35 0 34 1;
-#X connect 36 0 37 1;
-#X connect 37 0 36 0;
-#X connect 38 0 37 0;
-#X connect 39 0 88 0;
-#X connect 40 0 88 0;
-#X connect 48 0 88 0;
-#X connect 49 0 88 0;
-#X connect 53 0 64 0;
-#X connect 53 1 96 0;
-#X connect 53 2 70 0;
-#X connect 53 3 38 0;
-#X connect 63 0 88 0;
-#X connect 64 0 54 0;
-#X connect 64 1 55 0;
-#X connect 64 2 56 0;
-#X connect 64 3 57 0;
-#X connect 64 4 58 0;
-#X connect 64 5 59 0;
-#X connect 64 6 60 0;
-#X connect 64 7 61 0;
-#X connect 64 8 62 0;
-#X connect 64 9 65 0;
-#X connect 70 0 11 0;
-#X connect 70 1 12 0;
-#X connect 70 2 47 0;
-#X connect 70 3 71 0;
-#X connect 70 4 72 0;
-#X connect 70 5 73 0;
-#X connect 70 6 74 0;
+#X connect 4 0 85 0;
+#X connect 5 0 85 0;
+#X connect 6 0 85 0;
+#X connect 7 0 85 0;
+#X connect 8 0 85 0;
+#X connect 11 0 85 0;
+#X connect 32 0 31 0;
+#X connect 32 0 15 0;
+#X connect 33 0 32 1;
+#X connect 34 0 35 1;
+#X connect 35 0 34 0;
+#X connect 36 0 35 0;
+#X connect 37 0 85 0;
+#X connect 38 0 85 0;
+#X connect 46 0 85 0;
+#X connect 47 0 85 0;
+#X connect 51 0 61 0;
+#X connect 51 1 93 0;
+#X connect 51 2 67 0;
+#X connect 51 3 36 0;
+#X connect 61 0 52 0;
+#X connect 61 1 53 0;
+#X connect 61 2 54 0;
+#X connect 61 3 55 0;
+#X connect 61 4 56 0;
+#X connect 61 5 57 0;
+#X connect 61 6 58 0;
+#X connect 61 7 59 0;
+#X connect 61 8 60 0;
+#X connect 61 9 62 0;
+#X connect 67 0 9 0;
+#X connect 67 1 10 0;
+#X connect 67 2 45 0;
+#X connect 67 3 68 0;
+#X connect 67 4 69 0;
+#X connect 67 5 70 0;
+#X connect 67 6 71 0;
+#X connect 71 0 72 0;
+#X connect 71 1 74 0;
+#X connect 71 2 76 0;
+#X connect 71 3 78 0;
+#X connect 72 0 73 0;
#X connect 74 0 75 0;
-#X connect 74 1 77 0;
-#X connect 74 2 79 0;
-#X connect 74 3 81 0;
-#X connect 75 0 76 0;
-#X connect 77 0 78 0;
-#X connect 79 0 80 0;
-#X connect 81 0 82 0;
-#X connect 83 0 88 0;
-#X connect 84 0 88 0;
-#X connect 87 0 88 0;
-#X connect 88 0 34 0;
-#X connect 88 0 1 0;
-#X connect 88 0 53 0;
-#X connect 88 0 98 0;
-#X connect 95 0 88 0;
-#X connect 96 0 2 0;
-#X connect 96 1 3 0;
-#X connect 96 2 69 0;
-#X connect 96 3 97 0;
-#X connect 98 0 16 0;
-#X connect 98 1 15 0;
-#X connect 98 2 14 0;
+#X connect 76 0 77 0;
+#X connect 78 0 79 0;
+#X connect 80 0 85 0;
+#X connect 81 0 85 0;
+#X connect 84 0 85 0;
+#X connect 85 0 32 0;
+#X connect 85 0 1 0;
+#X connect 85 0 51 0;
+#X connect 85 0 95 0;
+#X connect 92 0 85 0;
+#X connect 93 0 2 0;
+#X connect 93 1 3 0;
+#X connect 93 2 66 0;
+#X connect 93 3 94 0;
+#X connect 95 0 14 0;
+#X connect 95 1 13 0;
+#X connect 95 2 12 0;
+#X connect 96 0 85 0;
+#X connect 97 0 96 0;
+#X connect 97 0 98 0;
diff --git a/hid_darwin.c b/hid_darwin.c
index 729347c..3c799c9 100644
--- a/hid_darwin.c
+++ b/hid_darwin.c
@@ -337,55 +337,55 @@ t_int hid_get_events(t_hid *x)
*/
case 0:
sprintf(code,"abs_hat0y");value = 1;
- hid_output_event(x,type,code,(t_float)value,(t_float)(event.timestamp).lo);
+ hid_output_event(x,type,code,(t_float)value);
sprintf(code,"abs_hat0x");value = 0;
break;
case 1:
sprintf(code,"abs_hat0y");value = 1;
- hid_output_event(x,type,code,(t_float)value,(t_float)(event.timestamp).lo);
+ hid_output_event(x,type,code,(t_float)value);
sprintf(code,"abs_hat0x");value = 1;
break;
case 2:
sprintf(code,"abs_hat0y");value = 0;
- hid_output_event(x,type,code,(t_float)value,(t_float)(event.timestamp).lo);
+ hid_output_event(x,type,code,(t_float)value);
sprintf(code,"abs_hat0x");value = 1;
break;
case 3:
sprintf(code,"abs_hat0y");value = -1;
- hid_output_event(x,type,code,(t_float)value,(t_float)(event.timestamp).lo);
+ hid_output_event(x,type,code,(t_float)value);
sprintf(code,"abs_hat0x");value = 1;
break;
case 4:
sprintf(code,"abs_hat0y");value = -1;
- hid_output_event(x,type,code,(t_float)value,(t_float)(event.timestamp).lo);
+ hid_output_event(x,type,code,(t_float)value);
sprintf(code,"abs_hat0x");value = 0;
break;
case 5:
sprintf(code,"abs_hat0y");value = -1;
- hid_output_event(x,type,code,(t_float)value,(t_float)(event.timestamp).lo);
+ hid_output_event(x,type,code,(t_float)value);
sprintf(code,"abs_hat0x");value = -1;
break;
case 6:
sprintf(code,"abs_hat0y");value = 0;
- hid_output_event(x,type,code,(t_float)value,(t_float)(event.timestamp).lo);
+ hid_output_event(x,type,code,(t_float)value);
sprintf(code,"abs_hat0x");value = -1;
break;
case 7:
sprintf(code,"abs_hat0y");value = 1;
- hid_output_event(x,type,code,(t_float)value,(t_float)(event.timestamp).lo);
+ hid_output_event(x,type,code,(t_float)value);
sprintf(code,"abs_hat0x");value = -1;
break;
case 8:
sprintf(code,"abs_hat0y");value = 0;
- hid_output_event(x,type,code,(t_float)value,(t_float)(event.timestamp).lo);
+ hid_output_event(x,type,code,(t_float)value);
sprintf(code,"abs_hat0x");value = 0;
break;
}
- hid_output_event(x,type,code,(t_float)value,(t_float)(event.timestamp).lo);
+ hid_output_event(x,type,code,(t_float)value);
break;
default:
convertDarwinElementToLinuxTypeCode(pCurrentHIDElement,type,code);
- hid_output_event(x,type,code,(t_float)value,(t_float)(event.timestamp).lo);
+ hid_output_event(x,type,code,(t_float)value);
}
// DEBUG(post("type: %s code: %s event name: %s",type,code,event_output_string););