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#
| Parameter | Type |
|---|---|
code | string |
Returns#
boolean