Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.7/src/events/KeyManager.ts";

Constructors

new
KeyManager(world: World)

Properties

keysDown: any
listeners: Array<string>

Methods

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