[haiku] Re: VMW tools as (optional) package

  • From: Stephan Aßmus <superstippi@xxxxxx>
  • To: haiku@xxxxxxxxxxxxx
  • Date: Mon, 02 Feb 2009 22:16:17 +0100

Vincent DUVERT schrieb:

Le 1 févr. 09 à 21:49, François Revol a écrit :
 - Haiku is receiving data from the (virtual) PS2 or USB mouse and
the VMW mouse at the same time, so the cursors flashes (and dragging
does not work very well).
Disabling the "mouse" add-on is not an option, since the buttons
status is not sent by VMWare...
I guess that I could write an input_server filter to make it ignore
the "mouse moved" events from the USB mouse, but this is going

Or just instead overrides the mouse moves from the mouse addon with the
absolute coordinates.
Probably a good idea...
How does filters work exactly ?
When receiving a B_MOUSE_MOVED BMessage, can I just change its contains and return B_DISPATCH_MESSAGE, or do I have to create and send a new BMessage ?

You need to modify the one that's passed in and return B_DISPATCH_MESSAGE. It should be easy to read the contents of certain fields, calculate new values and then you can use BMessage::Replace*(), to replace the data in the message.

Best regards,

Other related posts: