copy Makefile
and vwand.cpp
to
the directory of your choice and cd
to that directory
be sure the dtk-config
command is in your path
edit vwand.cpp and
set DEVICE_FILE to the
correct terminal file. You might also want to modify MAX_XY_OFFSET if your wand is
not generating scaled data between -1 and 1, and TRACKD_COMPATABLE if you are
using dtk-getTrackd to
supply trackd-compatible data.
type: make
if you have permision, you can install it with the other DTK
services by typing: make install
To run:
Start a DTK server if one is not already running
Load the service into the server by typing: dtk-loadService vwand
Test the vwand's joystick output by typing: dtk-readFloats joystick
Test the vwand's button output by typing: dtk-readButtons buttons