class Keyboard
Defined at line 6076 of file fidling/gen/sdk/fidl/fuchsia.ui.test.input/fuchsia.ui.test.input/hlcpp/fuchsia/ui/test/input/cpp/fidl.h
A tool to inject keyboard events into Input Pipeline.
Please extend as necessary.
Public Methods
void ~Keyboard ()
void SimulateUsAsciiTextEntry (::fuchsia::ui::test::input::KeyboardSimulateUsAsciiTextEntryRequest KeyboardSimulateUsAsciiTextEntryRequest, SimulateUsAsciiTextEntryCallback callback)
Simulates input of the set of keystrokes required to type `text`,
as if on a US QWERTY keyboard.
US ASCII text get mapped to the corresponding key presses.
For example `a` gets mapped into a press and
a followup release of the key `a` on the US QWERTY keyboard. Also,
`A` gets mapped into a press of the `Shift` key, followed by a press
and release of `a`.
For convenience, the `
` and `
` get converted into `Enter` and `Tab`
keys respectively.
void SimulateKeyEvent (::fuchsia::ui::test::input::KeyboardSimulateKeyEventRequest KeyboardSimulateKeyEventRequest, SimulateKeyEventCallback callback)
Simulate a key event by a keyboard input report.
KeyboardInputReport includes a list of keys that are currently pressing
down. The report can represent key down / up by comparing with previous
reports received.
void SimulateKeyPress (::fuchsia::ui::test::input::KeyboardSimulateKeyPressRequest KeyboardSimulateKeyPressRequest, SimulateKeyPressCallback callback)
Simulate one key press includes down and up event.