Skip to main content

Module input

Module input 

Source
Expand description

Injected input: one InputFrame per frame, built from request parameters. Every number that comes from a request is hostile: non-finite values are refused, the rest clamped.

Structs§

InputFrame
One frame of injected input.

Constants§

MAX_CHORDS
Most chords in one ui.press sequence.
MAX_TEXT
Most characters one ui.type / ui.fill sends.

Functions§

action_frame
An AccessKit action for the egui widget whose Id value is node (focus, scroll into view).
button
chords
"Mod+Shift+S" or a sequence "G G" (the ashlar_command::shortcut syntax) as egui keys.
click_frames
delta
{dx, dy} from params (missing = 0).
drag_frames
egui_modifiers
egui modifiers as a real keyboard on this platform reports them.
hover_frames
key
An egui key by name, forgiving about case and common aliases (return, esc, up).
key_frames
Press and release key: two frames.
modifiers
{command, shift, alt, ctrl} (command = ⌘ on macOS, Ctrl elsewhere) from p.modifiers.
point
{x, y} from params.
replace_frames
Replace the focused field’s text: select all, then type (or delete when text is empty), then Enter when submit.
scroll_frames
type_frames