Crate xdl

Source
Expand description

Input states for Rust-SDL2 (or any other)

§Getting started

Create Input and manage the lifecycle. See vi module for virtual input.

§TODOs

easier serde, mouse, gamepad, touchpad, more virtual input, ..

Modules§

backend
Backend implementations
utils
Internal utilities
vi
Virtual input, bundles of input states

Structs§

Input
All of the input states
Keyboard
All of the keyboard states

Enums§

Dir4
N | E | S | W
Dir8
N | NE | E | SE | S | SW | W | NW
Key
XDL keycode
Sign
Pos | Neg | Neutral

Traits§

Backend
Updates Input for a specific platform such as SDL2