InputWrapper
Interface to the Input system used by the BaseInputModule. With this it is possible to bypass the Input system with your own but still use the same InputModule. For example this can be used to feed fake input into the UI or interface with a different input system.
Read time 8 minutesLast updated 4 days ago
Definition
- Type: Class
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
- Inherits from: MonoBehaviour
public class InputWrapper : MonoBehaviour
Properties
Property | Description |
|---|---|
| compositionCursorPos | Interface to Input.compositionCursorPos. Can be overridden to provide custom input instead of using the Input class. |
| compositionString | Interface to Input.compositionString. Can be overridden to provide custom input instead of using the Input class. |
| imeCompositionMode | Interface to Input.imeCompositionMode. Can be overridden to provide custom input instead of using the Input class. |
| mousePosition | Interface to Input.mousePosition. Can be overridden to provide custom input instead of using the Input class. |
| mousePresent | Interface to Input.mousePresent. Can be overridden to provide custom input instead of using the Input class. |
| mouseScrollDelta | Interface to Input.mouseScrollDelta. Can be overridden to provide custom input instead of using the Input class. |
| touchCount | Interface to Input.touchCount. Can be overridden to provide custom input instead of using the Input class. |
| touchSupported | Interface to Input.touchSupported. Can be overridden to provide custom input instead of using the Input class. |
Methods
Method | Description |
|---|---|
| GetAxisRaw | Interface to Input.GetAxisRaw. Can be overridden to provide custom input instead of using the Input class. |
| GetButtonDown | Interface to Input.GetButtonDown. Can be overridden to provide custom input instead of using the Input class. |
| GetMouseButton | Interface to Input.GetMouseButton. Can be overridden to provide custom input instead of using the Input class. |
| GetMouseButtonDown | Interface to Input.GetMouseButtonDown. Can be overridden to provide custom input instead of using the Input class. |
| GetMouseButtonUp | Interface to Input.GetMouseButtonUp. Can be overridden to provide custom input instead of using the Input class. |
| GetTouch | Interface to Input.GetTouch. Can be overridden to provide custom input instead of using the Input class. |
Inheritance
Operators
Operator | Description |
|---|---|
| operator == | Compares two object references to see if they refer to the same object. |
| bool | Determines whether the object exists. |
| operator != | Compares if two objects refer to a different object. |