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
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
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
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
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
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