coffee 0.4.1

An opinionated 2D game engine focused on simplicity, explicitness, and type-safety
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/// A window event.
#[derive(Debug, Clone, Copy, PartialEq)]
pub enum Event {
    /// The game window gained focus.
    Focused,

    /// The game window lost focus.
    Unfocused,

    /// The game window was moved.
    Moved {
        /// The new X coordinate of the window
        x: f32,

        /// The new Y coordinate of the window
        y: f32,
    },
}