[interfacekit] Re: :) B_MOUSE_MOVED

> >     I will do it as you guys say!, but I still remain convinced that
adding
> > those 4 bytes will have no effect on performance!
>
> Well, adding 4 bytes does not affect performance at all.
>
> But please have a look at the modifiers() function.
> The disassembly clearly shows that is constructs a BMessage,
> askes the input server using
<=5Fcontrol=5Finput=5Fserver=5F=5F=5FFP8BMessageT0>
> where a BMessenger is constructed, etc.
> This is huge overhead when moving the mouse.

    I'm not going to call modifiers() when constructing the B_MOUSE_MOVED
BMessage!!! I was hoping that when input_server sends a B_MOUSE_MOVED
message to app_server, it will attach those 4 bytes denoting the modifiers
active at that moment. That way, app_server will send the B_MOUSE_MOVED
message with the modifiers states as an attachment to a BWindow.


Adi.



Other related posts: