tracking-test.hal
1 # a cone moves with your mouse in X and Y. Another cone points at the first. 2 # set Z with the mouse wheel. the algorithm gets crusty for values of z between 3 # -0.2 and 0.2 4 # 5 # run with halcmd -fk tracking-test.hal 6 7 # this assumes your mouse is on /dev/input/event1 and is world-writable. 8 # if not, chmod a+rw /dev/input/event1 and/or change 1 to the location of 9 # your mouse. see man hal_input for details 10 loadusr -W hal_input -RK 1 11 net x-mouse input.0.rel-x-position 12 net y-mouse input.0.rel-y-position 13 net z-mouse input.0.rel-wheel-position 14 net click input.0.btn-right 15 net click input.0.rel-wheel-reset 16 net click input.0.rel-x-reset 17 net click input.0.rel-y-reset 18 19 loadusr -W tracking-test 20 net x-mouse tracking-test.axis0 21 net y-mouse tracking-test.axis1 22 net z-mouse tracking-test.axis2 23 #linksp a tracking-test.axis3 24 #linksp b tracking-test.axis4 25 #linksp c tracking-test.axis5