Hello, I'm currently writing a device driver for a scroll switch under linux. The scroll switch will act as the wheel of a mouse (up/down/select). I will then have to write a java application that will demonstrate the use of the scroll switch.
I'm wondering how I can make the java application respond to the inputs of the switch. Do I have to create a thread that will constantly poll the device file (with FileInputStream, for ex.), and raise events as something's coming ? May I raise MouseEvents, or do I have to create a totally new AWTEvent (with Listeners and so on...). Or is there any other way to make the AWT respond automa(g)tically to the switch actions ? Can anybody give me some advice ... (I *must* use jdk 1.1.8) Thanks, Nicolas ---------------------------------------------------------------------- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]