Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

Warning
Deprecated. EventSystem no longer supports input override for legacy input. Install Input System package for full input binding functionality.
public class InputWrapper : MonoBehaviour

Properties

Property

Description

compositionCursorPosInterface to Input.compositionCursorPos. Can be overridden to provide custom input instead of using the Input class.
compositionStringInterface to Input.compositionString. Can be overridden to provide custom input instead of using the Input class.
imeCompositionModeInterface to Input.imeCompositionMode. Can be overridden to provide custom input instead of using the Input class.
mousePositionInterface to Input.mousePosition. Can be overridden to provide custom input instead of using the Input class.
mousePresentInterface to Input.mousePresent. Can be overridden to provide custom input instead of using the Input class.
mouseScrollDeltaInterface to Input.mouseScrollDelta. Can be overridden to provide custom input instead of using the Input class.
touchCountInterface to Input.touchCount. Can be overridden to provide custom input instead of using the Input class.
touchSupportedInterface to Input.touchSupported. Can be overridden to provide custom input instead of using the Input class.

Methods

Method

Description

GetAxisRawInterface to Input.GetAxisRaw. Can be overridden to provide custom input instead of using the Input class.
GetButtonDownInterface to Input.GetButtonDown. Can be overridden to provide custom input instead of using the Input class.
GetMouseButtonInterface to Input.GetMouseButton. Can be overridden to provide custom input instead of using the Input class.
GetMouseButtonDownInterface to Input.GetMouseButtonDown. Can be overridden to provide custom input instead of using the Input class.
GetMouseButtonUpInterface to Input.GetMouseButtonUp. Can be overridden to provide custom input instead of using the Input class.
GetTouchInterface to Input.GetTouch. Can be overridden to provide custom input instead of using the Input class.

Inheritance

Inherited Members

Operators

Operator

Description

operator ==Compares two object references to see if they refer to the same object.
boolDetermines whether the object exists.
operator !=Compares if two objects refer to a different object.