Skip to main content
Module

x/caviar/mod.ts>World#keyDown

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

Checks if a key is currently down

Parameters

e: WindowKeyboardEvent

Returns

boolean