On Mon, 11 Mar 2002 [EMAIL PROTECTED] wrote: > 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) >
Rather than reinvent the wheel, I'd take a look at imwheel. That's compatible with Java and can be configured to send keypresses into the app based on the wheel movement. I'm not sure you need a Java driver at all. -- Joi Ellis Software Engineer Aravox Technologies [EMAIL PROTECTED], [EMAIL PROTECTED] No matter what we think of Linux versus FreeBSD, etc., the one thing I really like about Linux is that it has Microsoft worried. Anything that kicks a monopoly in the pants has got to be good for something. - Chris Johnson ---------------------------------------------------------------------- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]