Skip to main content

Crate kova_native_input

Crate kova_native_input 

Source
Expand description

Input model for Kova Native.

Platform backends translate native events into InputEvents; the UI layer dispatches them through the element tree in a capture phase (root → target) followed by a bubble phase (target → root).

Macros§

actions
Declares unit-struct actions: actions!(Save, Quit, ToggleSidebar);

Structs§

ClickTracker
Counts consecutive clicks that are close in time and space.
KeyBinding
A binding from a keystroke sequence to an action.
KeyDownEvent
KeyUpEvent
Keymap
A collection of key bindings plus multi-keystroke matching state.
Keystroke
A single key press with modifiers, e.g. ctrl-shift-p.
KeystrokeParseError
Error returned when a keystroke string cannot be parsed.
Modifiers
Modifier key state.
MouseDownEvent
MouseMoveEvent
MouseUpEvent
PenEvent
Pressure-sensitive pointer event in logical window pixels.
ScrollWheelEvent

Enums§

CursorStyle
Mouse cursor shapes.
DispatchPhase
The phase in which an event handler runs.
ImeEvent
Input method editor events (composition of CJK text, dead keys, emoji picker…).
InputEvent
Any input event delivered to a window.
Key
A logical key.
KeymapMatch
Result of feeding a keystroke into the Keymap.
MouseButton
A mouse button.
NamedKey
Keys that do not produce text.
PenPhase
Phase of a pressure-sensitive pointer (for example, a stylus).
ScrollDelta
Scroll amount reported by the device.

Traits§

Action
A command that can be triggered by key bindings or programmatically.