[haiku-development] Re: Joysticks in Haiku

  • From: Pieter Panman <pieter@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Fri, 11 Mar 2011 16:28:56 +0100

 On 3/11/2011 4:20 PM, François Revol wrote:

It's just that VBox sends all button events through the PS/2 port as regular 
mouse events, and only the absolute position is available through their fake 
PCI device. So input_server gets a mixture of B_MOUSE_DOWN|UP with relative 
move of 0,0 and B_MOUSE_MOVED with the absolute positions but no button data.
Oddly app_server doesn't have problem with this when moving windows around, but 
Tracker can't start a selection or drag. Also releasing the mouse in a menu 
doesn't invoke it either.

VMware likely does the same which is why the vmware addon is implemented as a 
filter that adds absolute position to passing messages and caches buttons, and 
not a device. I went for a device naively and also to allow someone to disable 
it with iroster if needed, but I will have to also add a filter I suppose.

François.
Funny, that sounds related to a bug I encountered a while ago:

http://dev.haiku-os.org/ticket/5604

Regards,
Pieter

Other related posts: