Skip to main content

Module input

Module input 

Source
Expand description

Editor input dispatch โ€” keyboard shortcuts + camera navigation.

Pulls per-frame InputEvents from EditorApp::update and routes them to the editor camera, gizmo mode switches, the command palette and the workspace shortcuts. Viewport-rect aware so dragging across panels does not nudge the camera.

Structsยง

InputState
State of modifier keys + button drags that has to outlive a single frame. Lives on EditorApp and is mutated through this module.

Functionsยง

cursor_ray ๐Ÿ”’
The cursor ray for a screen position, or None when the viewport has not been laid out yet.
process_events
Drive the editor camera + global shortcuts off the per-frame input queue produced by the engine. World access is needed for Delete.