[sldev] Project looking for a home: (VWR-10924) Magical scripted HUD/UI
Carlo Wood
carlo at alinoe.com
Fri Sep 4 04:30:42 PDT 2009
On Thu, Sep 03, 2009 at 02:19:46PM -0400, Mike Monkowski wrote:
> 1. Determine which UI events to send to the object. For example, a
> button press has a mouse-down and a mouse-up event. Do we send both or
> just one? And if one, which one? The XUI trace function that we added
> shows the events. We've already suppressed some that we felt shouldn't
> be sent, such as scrolling. There's much more to do.
I don't think you should sent mouse position to the server (object),
and therefore you have to process mouse button events before sending
them:
If you press the mouse button while the pointer is on a button
and then move the mouse away from the button before releasing it,
then that button is not 'clicked'.
So, only if you release the mouse button at a position that is
over the same button as were it was pressed that should generate
a 'clicked' event for buttons.
If you want to allow people to detect where on a texture the
user clicks, then I guess you have to send both with position.
--
Carlo Wood <carlo at alinoe.com>
More information about the SLDev
mailing list