Posted by: Anonymous Coward
on March 30, 2007 06:00 PM
Been done, in Java at least. Scan <a href="http://www.mp3car.com/vbulletin/software-software-development/" title="mp3car.com">http://www.mp3car.com/vbulletin/software-software<nobr>-<wbr></nobr> development/</a mp3car.com> for "SpaceNavigator.java" for a Q&D hack. This is on Windows, I think, so the I/O needs changing, but I did a quick hack on a HID joystick (I've ordered a SpaceNavigator but it hasn't arrived yet) reading a stream from the device as a file, and that seems easy.
fin = new BufferedReader(new InputStreamReader(new FileInputStream("/dev/input/js0")));