From Paul Osmialowski:
I've attached whole rewritten linuxjoy.cc file (and
also a diff) that makes able to use joystick as a robot :)
It is still single-interface driver, so you have to
choose one interface that it will provide: "joystick:0"
axis_maxima [10 10]
axes [0 1]
Notice that on systems with 2.6 kernel default joystick
port is /dev/input/js0
Also I've changed meaning of axis_maxima variable while
using the position interface (I didn't want to add new
configuration variable). All x and y position values
are divided by axis_maxima values. You can put
axis_maxima [1 1] to get normal values from your joystick.
Log in to post a comment.