Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/caviar/mod.ts>EventManager

⚡ Blazing fast, modern, Game Engine powered by WebGPU for Deno and the browser
Latest
class EventManager
import { EventManager } from "https://deno.land/x/caviar@2.6.9/mod.ts";

Properties

keys: Array<string>
listeners: Map<string, Set<EventHandler>>

Methods

clear(): void
emit(event: string, data: Event): void
off(event: string, listener: EventHandler): void
on(event: string, listener: EventHandler): void