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.
E.g.:
try {
fin = new BufferedReader(new InputStreamReader(new FileInputStream("/dev/input/js0")));
Re:Can we make it useful for FOSS?
Posted by: Anonymous Coward on March 30, 2007 06:00 PMScan <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.
E.g.:
try {
fin = new BufferedReader(new InputStreamReader(new FileInputStream("/dev/input/js0")));
sysin = System.in;
System.out.println( "Opened Device file " + flname );
} catch (IOException ioex) {
System.out.println( "Unable to open Device file " + flname );
}
#