cobject 0.1.1

A game engine that uses minifb as a foundation and currently only supports 2D.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use minifb::MouseButton;

pub enum CMouse {
    Left,
    Middle,
    Right,
}

impl From<CMouse> for MouseButton {
    fn from(button: CMouse) -> minifb::MouseButton {
        match button {
            CMouse::Left => minifb::MouseButton::Left,
            CMouse::Middle => minifb::MouseButton::Middle,
            CMouse::Right => minifb::MouseButton::Right,
        }
    }
}