Key: {
_pressed: Set<string>;
isDown: (code: string) => boolean;
onKeydown: (event: KeyboardEvent) => void;
onKeyup: (event: KeyboardEvent) => void;
} = ...
Type Declaration
-
_pressed: Set<string>
-
isDown: (code: string) => boolean
-
onKeydown: (event: KeyboardEvent) => void
-
onKeyup: (event: KeyboardEvent) => void
Key class to track pressed keys using event.code