This is a read-only archive. Find the latest Linux articles, documentation, and answers at the new!

Re:Can we make it useful for FOSS?

Posted by: Anonymous Coward on March 30, 2007 06:00 PM
Been done, in Java at least.
Scan <a href="" title=""><nobr>-<wbr></nobr> development/</a> for "" 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.


        try {

            fin = new BufferedReader(new InputStreamReader(new FileInputStream("/dev/input/js0")));

            sysin =;

            System.out.println( "Opened Device file " + flname );

        } catch (IOException ioex) {

            System.out.println( "Unable to open Device file " + flname );



Return to SpaceNavigator: An affordable 3-D controller for Linux