[][src]Crate xdl

XDL: An extensional input layer on top of Rust-SDL2

Port of FNA input module + Virtual input.

Intended for games with orghogonal grid maps.

Getting started

Create Input with raw SDL window and manage the lifecycle.

See vi module for virtual input.

WIP

  • done: keyboard input
  • WIP: mouse input
  • WIP: gamepad
  • not started: touch input

Re-exports

pub use num_enum;
pub use sdl2;

Modules

axis

Primitive axis types

utils

Internal utilities

vi

Virtual input, bundles of input states

Structs

Input

All of the input states

Keyboard

All of the mouse states

Mouse

All of the mouse states

Enums

Key

XDL keycode

MouseInput

XDL mouse input code