Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/candybox2/candybox2.github.io
/ isKeyPressed
Function
isKeyPressed
code/main/Keyboard.ts:56–58 ·
view source on GitHub ↗
(keyString: string)
Source
from the content-addressed store, hash-verified
54
}
55
56
export
function
isKeyPressed(keyString: string): boolean{
57
return
game.getHotkeys()[keyString].getPressed();
58
}
59
}
Callers
nothing calls this directly
Calls
2
getPressed
Method · 0.80
getHotkeys
Method · 0.80
Tested by
no test coverage detected