InputLegacy
interludesoftware.tick¶
Interlude.Tick¶
InputLegacy Class¶
IInput implementation that reads from the legacy UnityEngine.Input API.
Active when ENABLE_INPUT_SYSTEM is not defined.
Inheritance System.Object → InputLegacy
Implements IInput
Constructors¶
InputLegacy(bool) Constructor¶
Creates an input provider. Pass flipY true when the render target Y-axis runs top-to-bottom.
Parameters¶
flipY System.Boolean
Methods¶
InputLegacy.CloseOnScreenKeyboard() Method¶
Dismisses the keyboard if one is open. Safe to call repeatedly.
Implements CloseOnScreenKeyboard()
InputLegacy.GetLeftDoubleClick() Method¶
Returns true on the frame a left-button double-click is detected.
Implements GetLeftDoubleClick()
Returns¶
InputLegacy.GetMousePosition() Method¶
Current mouse position in screen pixels.
Implements GetMousePosition()
Returns¶
InputLegacy.GetMousePositionDelta() Method¶
Mouse position delta since last frame, in screen pixels.
Implements GetMousePositionDelta()
Returns¶
InputLegacy.GetOnScreenKeyboardState() Method¶
Snapshot of the open keyboard. Returns default when none is open.
Implements GetOnScreenKeyboardState()
Returns¶
InputLegacy.GetPointer(int) Method¶
Returns the pointer at index. Index 0 is the mouse; touches
follow at 1..N. See Pointer for the per-pointer fields and the
mouse-vs-touch coordinate convention.
Parameters¶
index System.Int32
Implements GetPointer(int)
Returns¶
InputLegacy.OpenOnScreenKeyboard(string, OnScreenKeyboardConfig) Method¶
Asks the platform to show its on-screen keyboard with initialText. No-op if a keyboard is already open. Subsequent reads come from GetOnScreenKeyboardState().
Parameters¶
initialText System.String
config OnScreenKeyboardConfig
Implements OpenOnScreenKeyboard(string, OnScreenKeyboardConfig)
InputLegacy.Update() Method¶
Called once per frame to let the provider update its internal state.
Implements Update()