1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//! XDL: An extensional input layer on top of Rust-SDL2
//!
//! Port of FNA input module + Virtual input.
//!
//! Intended for games with orthoghogonal 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

pub use num_enum;
pub use sdl2;

pub mod axis;
pub mod utils;
pub mod vi;

mod input;

pub use input::{
    keyboard::{Key, Keyboard},
    mouse::{Mouse, MouseInput},
    Input,
};