# Sandbox.WorldInput

A router for world input, the best place to put this is on your player's camera.
Uses cursor ray when mouse is active, otherwise the direction of this gameobject.
You could also put this on a VR controller to interact with world panels.

- Kind: class
- Namespace: `Sandbox`
- Assembly: `Sandbox.Engine`
- Inherits: [Sandbox.Component](/api/Sandbox.Component)
- Modifiers: sealed

## Constructors

- [`WorldInput`](/api/Sandbox.WorldInput/.ctor)

## Properties

- [`Hovered`](/api/Sandbox.WorldInput/Hovered): The [Sandbox.UI.Panel](/api/Sandbox.UI.Panel) that is currently hovered by this input.
- [`LeftMouseAction`](/api/Sandbox.WorldInput/LeftMouseAction): Which action is our left clicking button?
- [`RightMouseAction`](/api/Sandbox.WorldInput/RightMouseAction): Which action is our right clicking button?
- [`VRHandSource`](/api/Sandbox.WorldInput/VRHandSource): If using VR this will be the hand source for input.
