Skip to content
pixi-silk
GitHub repository
Function

isKeyDown

import { isKeyDown } from 'pixi-silk/ui/keys';
function isKeyDown(code: string): boolean;

True while the key with this KeyboardEvent.code is down (e.g. ShiftLeft, KeyR, Space).

Parameters#

ParameterType
codestring

Returns#

boolean