Crate cool_rust_input

Source

Structs§

CoolInput
The main input type. Uses a custom input handler (a struct which implements CustomInputHandler)
DefaultInputHandler
A basic default input handler that implements all default functions of the CustomInputHandler trait.
HandlerContext
Context given to CustomInputHandler
InputTransform
Struct for size and offset of an input
TextInputData
Handles key presses, writing text, and moving the cursor

Enums§

KeyPressResult
Returned by CustomInputHandler’s handle_key_press to signal how the key event should be handled.

Traits§

CustomInputHandler
Trait that allows custom implementations / behaviour of an input

Functions§

set_terminal_line
Helper function to draw text to the screen by a coordinate