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 <lars.schn...@ifad.dk> wrote: 
> 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 
> computers do however come without serial(COM) port so I need to switch 
> over to USB.
> In a graphical Java user interface I can add a MouseListener and get 
> informed when a mouse button is pressed. Basically I need this 
> functionality just without the graphical user interface. All I need is 
> button presses, no mouse movement. It would of cause also be nice if it 
> would work under both Windows and Linux. Is there an easy way to do this?
> Thanks in advance!
> 
> Lars
> 
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
> trial. Simplify your report design, integration and deployment - and focus on 
> what you do best, core application coding. Discover what's new with 
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> javax-usb-devel mailing list
> javax-usb-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/javax-usb-devel


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
javax-usb-devel mailing list
javax-usb-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/javax-usb-devel

Reply via email to