class KeyboardEvent

Defined at line 260 of file fidling/gen/sdk/fidl/fuchsia.ui.input/fuchsia.ui.input/cpp/fidl/fuchsia.ui.input/cpp/natural_types.h

`KeyboardEvent` represents event generated by a user's interaction with a

keyboard.

Those events are triggered by distinct pressed state changes of the keys.

The state transitions should be as follows:

PRESSED -> (REPEAT ->) RELEASED

or

PRESSED -> (REPEAT ->) CANCELLED

The input system will repeat those events automatically when a code_point is

available.

DEPRECATED: Will be removed in favor of `fuchsia.ui.input.KeyEvent`.

Public Methods

void KeyboardEvent (uint64_t event_time, uint32_t device_id, ::fuchsia_ui_input::KeyboardEventPhase phase, uint32_t hid_usage, uint32_t code_point, uint32_t modifiers)
void KeyboardEvent ()

Default constructs a |KeyboardEvent| only if all of its members are default constructible.

Defined at line 270 of file fidling/gen/sdk/fidl/fuchsia.ui.input/fuchsia.ui.input/cpp/fidl/fuchsia.ui.input/cpp/natural_types.h

void KeyboardEvent (KeyboardEvent && )

Defined at line 273 of file fidling/gen/sdk/fidl/fuchsia.ui.input/fuchsia.ui.input/cpp/fidl/fuchsia.ui.input/cpp/natural_types.h

void KeyboardEvent (Storage_ storage)
void KeyboardEvent (const KeyboardEvent & other)
KeyboardEvent & operator= (const KeyboardEvent & other)
bool operator== (const KeyboardEvent & other)
bool operator!= (const KeyboardEvent & other)
uint64_t event_time ()

Time the event was delivered. The time is in nanoseconds and corresponds

to the monotonic time as determined by the zx_clock_get_monotonic syscall.

uint64_t & event_time ()

Time the event was delivered. The time is in nanoseconds and corresponds

to the monotonic time as determined by the zx_clock_get_monotonic syscall.

KeyboardEvent & event_time (uint64_t value)

Time the event was delivered. The time is in nanoseconds and corresponds

to the monotonic time as determined by the zx_clock_get_monotonic syscall.

uint32_t device_id ()
uint32_t & device_id ()
KeyboardEvent & device_id (uint32_t value)

Setter for device_id.

KeyboardEvent & operator= (KeyboardEvent && )

Defined at line 274 of file fidling/gen/sdk/fidl/fuchsia.ui.input/fuchsia.ui.input/cpp/fidl/fuchsia.ui.input/cpp/natural_types.h

::fuchsia_ui_input::KeyboardEventPhase phase ()
::fuchsia_ui_input::KeyboardEventPhase & phase ()
KeyboardEvent & phase (::fuchsia_ui_input::KeyboardEventPhase value)

Setter for phase.

uint32_t hid_usage ()

Keyboard HID Usage

See https://www.usb.org/sites/default/files/documents/hut1_12v2.pdf

uint32_t & hid_usage ()

Keyboard HID Usage

See https://www.usb.org/sites/default/files/documents/hut1_12v2.pdf

KeyboardEvent & hid_usage (uint32_t value)

Keyboard HID Usage

See https://www.usb.org/sites/default/files/documents/hut1_12v2.pdf

uint32_t code_point ()

The unicode code point represented by this key event, if any.

Dead keys are represented as Unicode combining characters.

If there is no unicode code point, this value is zero.

uint32_t & code_point ()

The unicode code point represented by this key event, if any.

Dead keys are represented as Unicode combining characters.

If there is no unicode code point, this value is zero.

KeyboardEvent & code_point (uint32_t value)

The unicode code point represented by this key event, if any.

Dead keys are represented as Unicode combining characters.

If there is no unicode code point, this value is zero.

uint32_t modifiers ()

Key modifiers as defined by the different kModifier constants such as

`kModifierCapsLock` currently pressed

uint32_t & modifiers ()

Key modifiers as defined by the different kModifier constants such as

`kModifierCapsLock` currently pressed

KeyboardEvent & modifiers (uint32_t value)

Key modifiers as defined by the different kModifier constants such as

`kModifierCapsLock` currently pressed

void KeyboardEvent (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )

Friends

class MemberVisitor
class NaturalStructCodingTraits