[haiku-development] Re: Joysticks in Haiku

  • From: Stephan Aßmus <superstippi@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Fri, 18 Mar 2011 10:38:33 +0100

Hi,

Am 18.03.2011 07:48, schrieb Adrien Destugues:
For devices advertising themselves as HID, I think everything will go
fine at the driver side if done right. The good way is to have a single,
generic HID driver, handling tablets, mouses, joysticks, keyboards,
anything else, in the same driver. This way, a weird device may have
some keyboard buttons, some knobs and some mouse axis, and still work
out of the box.

The problem is then mapping all this to input_server events. We want
mouse to move te pointer on screen, and keyboard to type letters. But
what to do with strange devices that are neither keyboard or mouse ?
Where to send the input then ?

Last night I was plugging my Logitech Wireless mice, which has some extra buttons, into my girlfriends Mac for the first time. That prompted the OS to display a keyboard configuration wizzard, where it wanted me to press the key to the right of the left shift key... :-)

I guess there may always be strange situations like this, but hopefully they can be kept to a minimum with some fuzzy logic in the driver.

Best regards,
-Stephan


Other related posts: