Hi, I'm working on a problem in robotics.

The problem I am having is what happens when a device, specifically a 
joystick, gets unplugged during use.

It's pretty vital to know when this has happened. Since the driver is event 
based, the joystick could have told the machine "I'm all the way forward", and 
then been unplugged. The program reading /dev/js0 doesn't receive notice about 
the unplug. This might lead to an out of control robot.

Is there an unplug event that my program can intercept? Catching this as early 
as possible is *really* important. Me sticking a line into the usb driver is 
not a problem.

Polling is not my idea of a good fix.
-- 
Twist that stump kitty
Twist it! Thump! Kitty's dead now
He's hamster hors d'oerves
http://www.hacksaw.org -- http://www.privatecircus.com -- KB1FVD




-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to