limnus_basic_input/
lib.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * Copyright (c) Peter Bjorklund. All rights reserved. https://github.com/swamp/limnus
 * Licensed under the MIT License. See LICENSE in the project root for license information.
 */
use crate::button::{ButtonState, MouseButton, MouseScrollDelta, TouchPhase};
use crate::key::KeyCode;
use limnus_message::Message;

mod button;
mod key;
pub mod prelude;

#[derive(Debug, Copy, Clone)]
pub enum InputMessage {
    KeyboardInput(ButtonState, KeyCode),
    MouseInput(ButtonState, MouseButton),
    MouseWheel(MouseScrollDelta, TouchPhase),
}

impl Message for InputMessage {}