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

x/caviar/web/src/events/KeyManager.ts>KeyManager

⚡ Blazing fast, modern, Game Engine powered by WebGPU for Deno and the browser
Go to Latest
class KeyManager
import { KeyManager } from "https://deno.land/x/caviar@2.4.0/web/src/events/KeyManager.ts";

Constructors

new
KeyManager(world: World)

Properties

keysDown: any
listeners: Array<string>

Methods

isDown(key: string): boolean
setKeys(keys: Array<string>)