phaser - v4.0.0-rc.4
    Preparing search index...
    type SmoothedKeyControlConfig = {
        acceleration?: number | Object;
        camera?: Cameras.Scene2D.Camera;
        down?: Key;
        drag?: number | Object;
        left?: Key;
        maxSpeed?: number | Object;
        maxZoom?: number;
        minZoom?: number;
        right?: Key;
        up?: Key;
        zoomIn?: Key;
        zoomOut?: Key;
        zoomSpeed?: number;
    }
    Index

    Properties

    acceleration?: number | Object

    The horizontal and vertical acceleration the camera will move.

    The Camera that this Control will update.

    down?: Key

    The Key to be pressed that will move the Camera down.

    drag?: number | Object

    The horizontal and vertical drag applied to the camera when it is moving.

    left?: Key

    The Key to be pressed that will move the Camera left.

    maxSpeed?: number | Object

    The maximum horizontal and vertical speed the camera will move.

    maxZoom?: number

    The largest zoom value the camera will reach when zoomed in.

    minZoom?: number

    The smallest zoom value the camera will reach when zoomed out.

    right?: Key

    The Key to be pressed that will move the Camera right.

    up?: Key

    The Key to be pressed that will move the Camera up.

    zoomIn?: Key

    The Key to be pressed that will zoom the Camera in.

    zoomOut?: Key

    The Key to be pressed that will zoom the Camera out.

    zoomSpeed?: number

    The speed at which the camera will zoom if the zoomIn or zoomOut keys are pressed.