Re: [javax-usb-devel] Detecting mouse buttons on Windows

2009-08-06 Thread Lars Schnoor
I am currently using the serial-port as just the serial-port, but the missing serial-ports on modern computers, especially laptops, create a problem. I thought that with a Java USB solution, I could use cheap USB mice. I tried the Sun comm package, but found that it introduced undesirable delay

Re: [javax-usb-devel] Detecting mouse buttons on Windows

2009-08-06 Thread max
Well, it is a full serial port. In fact if you really do just want to use it as a serial port then I recommend you forget the mouse interface and just use it directly as a serial port. Your life will be much simpler. >From Sun you can download the javacomm package >(http://java.sun.com/product

Re: [javax-usb-devel] Detecting mouse buttons on Windows

2009-08-06 Thread Lars Schnoor
I thought about an adaptor too, but wasn't sure if such an adaptor would provide a real serial-port. I am using a specific control line of the serial-port to detect the signal and in order for this to work the adaptor would have to convert and provide the signal. All I really need is an easy way

Re: [javax-usb-devel] Detecting mouse buttons on Windows

2009-08-06 Thread Dan Streetman
Yep that is by far the easiest thing to do. Actually getting mouse events through USB using javax.usb will be much more work. You'll need to kick the existing HID driver off the mouse (so you can't use it as a normal system mouse anymore). Then claim it and start parsing its input reports which

Re: [javax-usb-devel] Detecting mouse buttons on Windows

2009-08-06 Thread max
I think your best bet is to get one a usb to serial adapter (for example: http://sewelldirect.com/usbtoserial.asp) This will simply show up as a serial port and you won't have to do anything differently than you do now. Oscar Lars Schnoor wrote: > Hi everyone > I have a Java applicatio

[javax-usb-devel] Detecting mouse buttons on Windows

2009-08-06 Thread Lars Schnoor
Hi everyone I have a Java application that needs to detect mouse button activation. I need some hardware input to my application, currently I access the serial port to detect some button press by reading the control lines of the serial port using the RXTXcomm package. More and more modern compu