MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / isKeyPressed

Function isKeyPressed

src/core/index.ts:572–574  ·  view source on GitHub ↗
(key: number)

Source from the content-addressed store, hash-verified

570// Keyboard input
571
572export function isKeyPressed(key: number): boolean {
573 return bloom_is_key_pressed(key) !== 0;
574}
575
576export function isKeyDown(key: number): boolean {
577 return bloom_is_key_down(key) !== 0;

Callers 11

handleInputFunction · 0.90
main.tsFile · 0.90
main.tsFile · 0.90
main.tsFile · 0.90
main.tsFile · 0.90
main.tsFile · 0.90
main.tsFile · 0.90
main.tsFile · 0.90
interactive.tsFile · 0.85
room.tsFile · 0.85
main.tsFile · 0.85

Calls 1

bloom_is_key_pressedFunction · 0.50

Tested by

no test coverage detected