Summary

WorldInput can be used to simulate standard mouse inputs on WorldPanels.

Properties

Active The Sandbox.UI.Panel that is currently pressed by this input.
Enabled This input won't tick when this is false. Any hovered panels will be cleared.
Hovered The Sandbox.UI.Panel that is currently hovered by this input.
MouseLeftPressed
MouseRightPressed
MouseWheel Simulate the mouse scroll wheel. You could use <seealso cref="P:Sandbox.Input.MouseWheel" /> Or you could simulate it with the camera view delta for example.
Ray The Ray used to intersect with your world panels, simulating mouse position.
UseMouseInput Instead of simulating mouse input, this will simply use the mouse input.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.