[interfacekit] Re: :) B_MOUSE_MOVED

"Adi Oanca" <e2joseph@xxxxxxxxxx> wrote:
> > >      B=5FMOUSE=5FMOVED
> > > should we add:
> > > "modifiers" B=5FINT32=5FTYPE     The modifier keys that were in 
> > > effect at
> > I agree with axel that we should be fast, this means don't add 
> > modifiers.
>     If you think 4 bytes will slow the system down... then, so be it!

It won't slow down the system, but it'll be slower, that's a fact. Even 
if it wouldn't be noticeable :)

>     But remember!
>     When BeOS R4 appeared we were using 4x86 machines (or Pentium I) 
> - that
> is if I remember correctly!
> 
>     I don't think 4 bytes would make a difference, especially that 
> only one
> B=5FMOUSE=5FMOVED is in the system !

It's not only slower than without it, IMHO it's just not necessary to 
add it, because of the modifiers() function. Mouse movements are 
generally handled ASAP, so the return value from modifiers() should 
really be enough if someone is interested in that value (and even be 
faster to call if it doesn't require to call the app=5Fserver).

IOW you could also add the color of the pixel under the mouse cursor, 
the speed of the movement, etc. - might all be useful, but could also 
be just got/calculated when really needed.

>     If you say 4 bytes will slow the system, what about BScrollBar 
> being
> implemented on client side!=3F!=3F

This has just nothing to do with each other. BScrollBar being 
implemented on the server is a bad design decision that was made for 
speed. Now, as you put it, we normally don't use P-90s anymore, so we 
have taken the chance to fix this "bug". If we will encounter problems 
with that decision later on, we can still just switch to a server side 
implementation, although I really wouldn't like that.

Adios...
   Axel.


Other related posts: