input: refactor, move dsl stuff to tek config
Some checks are pending
/ build (push) Waiting to run

This commit is contained in:
🪞👃🪞 2025-08-23 13:47:45 +03:00
parent 0621793930
commit e3e3c163da
12 changed files with 104 additions and 182 deletions

View file

@ -1,16 +1,6 @@
# `tengri_engine`
***tengri_input*** is where tengri's input handling is defined.
## rendering
## input handling
the **input thread** polls for keyboard events
and passes them onto the application's `Handle::handle` method.
thus, for a type to be a valid application for engine `E`,
it must implement the trait `Handle<E>`, which allows it
to respond to user input.
this thread has write access to the application state,
and is responsible for mutating it in response to
user activity.
the following items are provided:
* `Input` trait, for defining for input sources
* `Handle` trait and `handle!` macro, for defining input handlers
* `Command` trait and the `command!` macro, for defining commands that inputs may result in