swamp_basic_input/
lib.rs

1/*
2 * Copyright (c) Peter Bjorklund. All rights reserved. https://github.com/swamp/swamp
3 * Licensed under the MIT License. See LICENSE in the project root for license information.
4 */
5use crate::button::{ButtonState, MouseButton, MouseScrollDelta, TouchPhase};
6use crate::key::KeyCode;
7use swamp_message::Message;
8
9mod button;
10mod key;
11pub mod prelude;
12
13#[derive(Debug, Copy, Clone)]
14pub enum InputMessage {
15    KeyboardInput(ButtonState, KeyCode),
16    MouseInput(ButtonState, MouseButton),
17    MouseWheel(MouseScrollDelta, TouchPhase),
18}
19
20impl Message for InputMessage {}