Skip to main content

InputProvider Class

NuGet: GHIElectronics.TinyCLR.UI
Assembly: GHIElectronics.TinyCLR.UI
Namespace: GHIElectronics.TinyCLR.UI.Input

Feeds button, touch and focus-navigation input into the input manager.

public sealed class InputProvider

Constructors​

InputProvider(Application a)​

public InputProvider(Application a)

Constructs an instance of the InputProvider class for the given application.

Methods​

RaiseButton(HardwareButton button, bool state, DateTime time)​

public void RaiseButton(HardwareButton button, bool state, DateTime time)

Reports a button press or release to the input manager.

RaiseTouch(int x, int y, TouchMessages which, DateTime time)​

public void RaiseTouch(int x, int y, TouchMessages which, DateTime time)

Reports a touch event at the given position to the input manager.

RaiseCharacter(char character)​

public void RaiseCharacter(char character)

Reports a typed character (from a physical keyboard) to the focused element. Map a real keyboard's characters to this for PC-style text entry into a focused TextBox. Backspace = '\b', delete = (char)127. Safe to call from any thread - it marshals onto the UI dispatcher.

RaiseFocusNavigation(bool forward)​

public void RaiseFocusNavigation(bool forward)

Moves focus between tab stops (map hardware keys or UART keys to this for PC-style navigation).