tcrab_console_gl 0.1.1

An OpenGL 3.3 console emulator
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
pub fn translate(glutin_event: glutin::Event) -> Option<tcrab_console::Event> {
    use tcrab_console::Event;
    Some(match glutin_event {
        glutin::Event::WindowEvent { event: glutin_window_event, .. } => {
            match glutin_window_event {
                glutin::WindowEvent::CloseRequested => Event::Quit,
                _ => return None,
            }
        },
        _ => return None,
    })
}