Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 557 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 557 Bytes

Deno + Winit

winit binding for deno

Example

import { Window, EventLoop } from "./mod.ts";

const eventLoop = new EventLoop();
const window = new Window(eventLoop, {
  title: "hello world",
});

for await (const event of eventLoop.pollEvents()) {
  window.onEvent(event);
  console.log(event);
  if (window.closed) break;
}

Related

Inspiration