sej
    Preparing search index...

    Type Alias KeyboardControls

    The KeyboardControls captures keyboard inputs. Any type of logic can be implemented on top of this.

    type KeyboardControls = {
        activate: () => void;
        deactivate: () => void;
        enabled: boolean;
        update: (delta: number) => void;
    }

    Implemented by

    Index

    Properties

    activate: () => void
    deactivate: () => void
    enabled: boolean

    Whether the controls are enabled or not.

    true
    
    update: (delta: number) => void

    Call this on every frame to update the controls.