optic-window 0.0.3

Windowing and input for Optic engine — winit wrapper with per-frame key/mouse/gamepad state
Documentation

optic-window

Windowing and input for the Optic engine — winit wrapper with per-frame key, mouse, and gamepad state.

Provides a Window handle with cursor tracking (grab, confine, loopback), and an Events accumulator that collects winit + gilrs events each frame for polling-style input queries.

use optic_window::{Window, Events};
use optic_core::Size2D;

let el = winit::event_loop::EventLoop::new().unwrap();
let mut window = Window::new(&el, "My App", Size2D::from(800, 600));
let mut events = Events::new();