Class 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.
Inherited Members
Namespace: Unity.UIElements.Runtime
Assembly: solution.dll
Syntax
public class InputWrapper : MonoBehaviour
Properties
| Name | 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
| Name | Description |
|---|---|
| GetAxisRaw(string) | Interface to Input.GetAxisRaw. Can be overridden to provide custom input instead of using the Input class. |
| GetButtonDown(string) | Interface to Input.GetButtonDown. Can be overridden to provide custom input instead of using the Input class. |
| GetMouseButton(int) | Interface to Input.GetMouseButton. Can be overridden to provide custom input instead of using the Input class. |
| GetMouseButtonDown(int) | Interface to Input.GetMouseButtonDown. Can be overridden to provide custom input instead of using the Input class. |
| GetMouseButtonUp(int) | Interface to Input.GetMouseButtonUp. Can be overridden to provide custom input instead of using the Input class. |
| GetTouch(int) | Interface to Input.GetTouch. Can be overridden to provide custom input instead of using the Input class. |