Thread: Joystick 2
View Single Post
  #7   Spotlight this post!  
Unread 24-02-2010, 20:06
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Joystick 2

USB joysticks can have serial numbers, but due to cost issues, they rarely do. Instead, the vendor and product info identifies them, with the order they are identified on the bus being the id for identical joysticks.

This doesn't really affect what you are saying except that there are corner cases which will not work as you might expect -- for example, unplug the hub, swap two identical joysticks within the hub, replug the hub, and the computer can't tell that anything changed. If they had serial numbers, the joystick values would follow the serial numbers. Without serial numbers, they are tied to the port.

Greg McKaskle
Reply With Quote