flake-engine 0.1.11

Immediate-mode game framework built on wgpu + winit
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use winit::event::MouseButton;
use winit::keyboard::KeyCode;

pub mod keyboard;
pub(crate) mod mouse;

pub enum GlobalInputEvent {
    Button(MouseButton, bool), // (button, is_pressed)
    Wheel(f32, f32),
    Move(f32, f32),
    Key(KeyCode, Option<String>, bool), // (key, is_pressed)
}