Summary
WorldInput can be used to simulate standard mouse inputs on WorldPanels.
Remarks
You need to set UI.WorldInput.Ray and UI.WorldInput.MouseLeftPressed to simulate inputs,
ideally this should be done in a BuildInput event.
Constructors
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. |