/// 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.
/// </summary>
publicclassBaseInput:UIBehaviour
{
/// <summary>
/// Interface to Input.compositionString. Can be overridden to provide custom input instead of using the Input class.
/// </summary>
publicvirtualstringcompositionString
{
get{returnInput.compositionString;}
}
/// <summary>
/// Interface to Input.imeCompositionMode. Can be overridden to provide custom input instead of using the Input class.
/// </summary>
publicvirtualIMECompositionModeimeCompositionMode
{
get{returnInput.imeCompositionMode;}
set{Input.imeCompositionMode=value;}
}
/// <summary>
/// Interface to Input.compositionCursorPos. Can be overridden to provide custom input instead of using the Input class.
/// </summary>
publicvirtualVector2compositionCursorPos
{
get{returnInput.compositionCursorPos;}
set{Input.compositionCursorPos=value;}
}
/// <summary>
/// Interface to Input.mousePresent. Can be overridden to provide custom input instead of using the Input class.
/// </summary>
publicvirtualboolmousePresent
{
get{returnInput.mousePresent;}
}
/// <summary>
/// Interface to Input.GetMouseButtonDown. Can be overridden to provide custom input instead of using the Input class.
/// </summary>
/// <param name="button"></param>
/// <returns></returns>
publicvirtualboolGetMouseButtonDown(intbutton)
{
returnInput.GetMouseButtonDown(button);
}
/// <summary>
/// Interface to Input.GetMouseButtonUp. Can be overridden to provide custom input instead of using the Input class.
/// </summary>
publicvirtualboolGetMouseButtonUp(intbutton)
{
returnInput.GetMouseButtonUp(button);
}
/// <summary>
/// Interface to Input.GetMouseButton. Can be overridden to provide custom input instead of using the Input class.
/// </summary>
publicvirtualboolGetMouseButton(intbutton)
{
returnInput.GetMouseButton(button);
}
/// <summary>
/// Interface to Input.mousePosition. Can be overridden to provide custom input instead of using the Input class.