
i
i
i
i
i
i
i
i
17.5. Interfacing Custom VR Hardware with the Applications 497
your own device driver for Windows or Linux. Of course, it is possible to
do both—see [8] and [13]—but for all but the highest-speed interfaces, the
universal serial bus (USB) will do the job. With a bit of clever programming,
one can fool Windows into believing that it already has all the drivers it n eeds
and is dealing with a joystick. Interfacing to a PC via USB could be the
subject of several books in itself, so here we will only give an outline view of
the hardware and explain how an application program written in C/C++ can
read and write directly to a USB device.
17.5.1 A