Hello out there...
I'm using 'hid' from 0.40.3-extended in ubuntu hardy. After opening the mouse device everything seems to be fine at first (all number boxes in the example patch change on clicks and wheel-moves as expected), but when I'm trying to use mouse-wheel or relative position I was little surprised that those events are beeing repeated until I send a 0 or close Mesage to the hid object. Like this i can get single events out of it, but i don't think that's a good idea, closing and reopening the device all the time.
I tried a new Logitech RX1000 and an older optical Logitech USB Mouse without differences. I'll try a PS/2 Mouse later...
example-patch attached.
[hid] 0.7, written by Hans-Christoph Steiner hans@eds.org compiled on Jul 29 2008 at 08:31:09
Martin
#N canvas 0 0 772 494 10; #X obj 41 57 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 1 ; #X floatatom 49 278 5 0 0 0 - - -; #X floatatom 85 234 6 0 0 0 - - -; #X floatatom 160 182 5 0 0 1 ev_syn - -; #X obj 133 181 +; #X msg 133 161 1; #X obj 38 130 route key rel abs syn; #X obj 31 341 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0 1 ; #X obj 443 233 route abs_hat0x abs_hat0y abs_hat1x abs_hat1y; #X floatatom 443 255 7 0 0 0 - - -; #X obj 85 213 route abs_x abs_y abs_z abs_rx abs_ry abs_rz abs_throttle ; #X obj 443 271 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 -1; #X floatatom 520 255 7 0 0 0 - - -; #X obj 520 271 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1; #X floatatom 598 255 7 0 0 0 - - -; #X obj 598 271 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1; #X floatatom 675 255 7 0 0 0 - - -; #X obj 675 271 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1; #X floatatom 135 234 6 0 0 0 - - -; #X floatatom 185 234 6 0 0 0 - - -; #X floatatom 235 234 6 0 0 0 - - -; #X floatatom 285 234 6 0 0 0 - - -; #X floatatom 335 234 6 0 0 0 - - -; #X floatatom 385 234 6 0 0 0 - - -; #X obj 61 341 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0 1 ; #X obj 91 341 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0 1 ; #X obj 121 341 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0 1; #X obj 151 341 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0 1; #X obj 181 341 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0 1; #X obj 211 341 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0 1; #X obj 241 341 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0 1; #X obj 271 341 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0 1; #X obj 301 341 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0 1; #X obj 331 341 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0 1; #X obj 361 341 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0 1; #X obj 391 341 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0 1; #X obj 421 341 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0 1; #X obj 31 299 route btn_0 btn_1 btn_2 btn_3 btn_4 btn_5 btn_6 btn_7 btn_8 btn_9 btn_10 btn_11 btn_12 btn_13 btn_14 btn_15; #X obj 451 341 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0 1; #X obj 481 341 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0 1; #X obj 38 100 hid 0; #X msg 196 19 close; #X floatatom 95 280 5 0 0 0 - - -; #X floatatom 135 281 5 0 0 0 - - -; #X floatatom 176 281 5 0 0 0 - - -; #X obj 49 258 route rel_x rel_y rel_z rel_wheel rel_hwheel; #X floatatom 237 284 5 0 0 0 - - -; #X obj 367 129 + 1; #X obj 329 130 f; #X floatatom 325 154 5 0 0 0 - - -; #X msg 331 106 0; #X text 27 -61 sudo chmod 444 /dev/input/* or udev rule; #X msg 36 17 open 2; #X msg 280 16 close , open 2 , 1; #X obj 280 -7 t b; #X text 360 155 counts incoming events from rel_wheel; #X obj 314 -50 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 1; #X obj 281 -29 spigot; #X obj 275 129 t b b; #X text 330 -51 this is really stupid but makes single events.; #X msg 89 19 close , open $1; #X floatatom 90 -5 5 0 0 0 - - -; #X connect 0 0 40 0; #X connect 3 0 4 1; #X connect 4 0 3 0; #X connect 5 0 4 0; #X connect 6 0 37 0; #X connect 6 1 45 0; #X connect 6 2 10 0; #X connect 6 3 5 0; #X connect 8 0 9 0; #X connect 8 1 12 0; #X connect 8 2 14 0; #X connect 8 3 16 0; #X connect 9 0 11 0; #X connect 10 0 2 0; #X connect 10 1 18 0; #X connect 10 2 19 0; #X connect 10 3 20 0; #X connect 10 4 21 0; #X connect 10 5 22 0; #X connect 10 6 23 0; #X connect 10 7 8 0; #X connect 12 0 13 0; #X connect 14 0 15 0; #X connect 16 0 17 0; #X connect 37 0 7 0; #X connect 37 1 24 0; #X connect 37 2 25 0; #X connect 37 3 26 0; #X connect 37 4 27 0; #X connect 37 5 28 0; #X connect 37 6 29 0; #X connect 37 7 30 0; #X connect 37 8 31 0; #X connect 37 9 32 0; #X connect 37 10 33 0; #X connect 37 11 34 0; #X connect 37 12 35 0; #X connect 37 13 36 0; #X connect 37 14 38 0; #X connect 37 15 39 0; #X connect 40 0 6 0; #X connect 41 0 40 0; #X connect 45 0 1 0; #X connect 45 1 42 0; #X connect 45 2 43 0; #X connect 45 3 44 0; #X connect 45 3 58 0; #X connect 45 4 46 0; #X connect 47 0 48 1; #X connect 48 0 47 0; #X connect 48 0 49 0; #X connect 50 0 48 0; #X connect 52 0 40 0; #X connect 53 0 40 0; #X connect 54 0 53 0; #X connect 56 0 57 1; #X connect 57 0 54 0; #X connect 58 0 57 0; #X connect 58 1 48 0; #X connect 60 0 40 0; #X connect 61 0 60 0;