MCPcopy 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

getPressedMethod · 0.80
getHotkeysMethod · 0.80

Tested by

no test coverage detected