ProjectionInputCodec

Detached standard input properties shared by declaration projections and installed client adapters. Decoders reject malformed variants, ranges, and trailing fields before handlers run. The enclosing transport owns aggregate byte, collection, and nesting limits.

Functions

Link copied to clipboard

Encodes one logical button without conflating auxiliary and named buttons.

Decodes named or nonnegative auxiliary button identities.

Link copied to clipboard

Encodes exact physical-key membership and optional held-modifier matching.

Decodes a detached keyboard subscription before installing client listeners.

Link copied to clipboard

Encodes the physical key, scan code, and complete captured modifier state.

Decodes a keyboard event, preserving unknown keys and platform scan codes.

Link copied to clipboard

Decodes one pointer event together with its modifier-local position.

fun pointer(event: PointerEvent, localPosition: IntOffset): ProjectionValue

Encodes both tree coordinates and modifier-local coordinates, including out-of-bounds captured input.

Link copied to clipboard

Encodes committed Unicode scalars or complete immutable IME composition notifications.

Validates Unicode scalars and composition caret/block bounds through the existing input constructors.