window 0.4.0

Minimal Rust code for creating a window, automatically choosing a backend window manager and graphics API.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! User input from the window.

pub use human::{
    renumber, rumble, set_mode, GameInput, Input, Mode, TextInput, UiInput,
};
use pasts::prelude::*;

/// Get user input from all connected human interface devices.
pub async fn input() -> Input {
    [human::input().fut(), crate::ffi::input().fut()]
        .select()
        .await
        .1
}