void SetMouseCapture( bool b )

Summary

Captures the mouse cursor while active. The cursor will be hidden and will be stuck in place.

You will want to use Mouse.Delta in UI.Panel.Tick while UI.Panel.HasMouseCapture to read mouse movements.

You can call this from UI.Panel.OnButtonEvent for mouse clicks.

people
Log in to reply
You can't reply if you're not logged in. That would be crazy.