[−][src]Trait coffee::input::Input
The input of your Game
.
If you just want simple access to the keyboard and mouse, check out the
built-in KeyboardAndMouse
type.
Required methods
fn new() -> Self
Creates a new Input
.
fn update(&mut self, event: Event)
Processes an input event.
This function may be called multiple times during event processing,
before Game::interact
.
fn clear(&mut self)
Clears any temporary state that should be consumed by Game::interact
and could accumulate otherwise.
This method will be called after each Game::interact
.