On Wednesday 27 January 2010 21:20:10 Neil Canham wrote:
> My question is an always has
> been about if this is really going to be part of the plan - capturing
> mouse/keyboard for a media textured prim surface without opening a
> flat 2D window, and if so how will focus be managed?
> 

If you look in Snowglobe (starting form 1.2), you can see a partial 
implementation of this in newview/llviewermediafocus.(cpp|h) and parts in 
newview/lltoolpie.(cpp|h). This is presumably fully implemented in viewer 2.0.

To try it, activate the MediaOnAPrimUI debug setting, and click a media prim. 
It handles zooming/moving the camera so that the media face is orthogonal to 
the camera, showing some HUD controls around the prim, and capturing keyboard 
and mouse events. The version in Snowglobe is not fully working: mouse clicks 
won't work and focus management is broken. But hovering your mouse over some 
active html content will show that hover events are processed, and if you 
click carefully enough, keyboard events will be passed too (so you are able to 
browse the web by typing into google and tabbing to the right link.)

-- 
Thickbrick
_______________________________________________
Policies and (un)subscribe information available here:
http://wiki.secondlife.com/wiki/SLDev
Please read the policies before posting to keep unmoderated posting privileges

Reply via email to