C# Class UnityEngine.EventSystems.BaseInput

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.

Inheritance: UIBehaviour
Datei anzeigen Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Public Methods

Method Description
GetAxisRaw ( string axisName ) : float

Interface to Input.GetAxisRaw. Can be overridden to provide custom input instead of using the Input class.

GetButtonDown ( string buttonName ) : bool

Interface to Input.GetButtonDown. Can be overridden to provide custom input instead of using the Input class.

GetMouseButton ( int button ) : bool

Interface to Input.GetMouseButton. Can be overridden to provide custom input instead of using the Input class.

GetMouseButtonDown ( int button ) : bool

Interface to Input.GetMouseButtonDown. Can be overridden to provide custom input instead of using the Input class.

GetMouseButtonUp ( int button ) : bool

Interface to Input.GetMouseButtonUp. Can be overridden to provide custom input instead of using the Input class.

GetTouch ( int index ) : Touch

Interface to Input.GetTouch. Can be overridden to provide custom input instead of using the Input class.

Method Details

GetAxisRaw() public method

Interface to Input.GetAxisRaw. Can be overridden to provide custom input instead of using the Input class.

public GetAxisRaw ( string axisName ) : float
axisName string
return float

GetButtonDown() public method

Interface to Input.GetButtonDown. Can be overridden to provide custom input instead of using the Input class.

public GetButtonDown ( string buttonName ) : bool
buttonName string
return bool

GetMouseButton() public method

Interface to Input.GetMouseButton. Can be overridden to provide custom input instead of using the Input class.

public GetMouseButton ( int button ) : bool
button int
return bool

GetMouseButtonDown() public method

Interface to Input.GetMouseButtonDown. Can be overridden to provide custom input instead of using the Input class.

public GetMouseButtonDown ( int button ) : bool
button int
return bool

GetMouseButtonUp() public method

Interface to Input.GetMouseButtonUp. Can be overridden to provide custom input instead of using the Input class.

public GetMouseButtonUp ( int button ) : bool
button int
return bool

GetTouch() public method

Interface to Input.GetTouch. Can be overridden to provide custom input instead of using the Input class.

public GetTouch ( int index ) : Touch
index int
return UnityEngine.Touch