@turbowarp/types-tw
    Preparing search index...

    Interface Keyboard

    interface Keyboard {
        _usedKeys: Set<string>;
        runtime: Runtime;
        _keyArgToScratchKey(key: string | number): string;
        _keyStringToScratchKey(key: string): string;
        getKeyIsDown(key: string | number): boolean;
        hasUsedKey(scratchKey: string): boolean;
        postData(data: KeyboardData): void;
    }
    Index

    Properties

    _usedKeys: Set<string>
    runtime: Runtime

    Methods

    • Parameters

      • key: string | number

      Returns string