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

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

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

Constructors

new
KeyManager(world: World)

Properties

keysDown: any
listeners: Array<string>

Methods

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