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 <[email protected]> _______________________________________________ Policies and (un)subscribe information available here: http://wiki.secondlife.com/wiki/SLDev Please read the policies before posting to keep unmoderated posting privileges
