phaser - v4.0.0-rc.4
    Preparing search index...

    Type Alias InputConfiguration

    type InputConfiguration = {
        alphaTolerance?: number;
        cursor?: string;
        draggable?: boolean;
        dropZone?: boolean;
        hitArea?: any;
        hitAreaCallback?: HitAreaCallback;
        pixelPerfect?: boolean;
        useHandCursor?: boolean;
    }
    Index

    Properties

    alphaTolerance?: number

    If pixelPerfect is set, this is the alpha tolerance threshold value used in the callback. A value of 255 will match only fully opaque pixels.

    cursor?: string

    The CSS string to be used when the cursor is over this Interactive Object.

    draggable?: boolean

    If true the Interactive Object will be set to be draggable and emit drag events.

    dropZone?: boolean

    If true the Interactive Object will be set to be a drop zone for draggable objects.

    hitArea?: any

    The object / shape to use as the Hit Area. If not given it will try to create a Rectangle based on the texture frame.

    hitAreaCallback?: HitAreaCallback

    The callback that determines if the pointer is within the Hit Area shape or not.

    pixelPerfect?: boolean

    If true the a pixel perfect function will be set for the hit area callback. Only works with image texture based Game Objects, not Render Textures.

    useHandCursor?: boolean

    If true the Interactive Object will set the pointer hand cursor when a pointer is over it. This is a short-cut for setting cursor: 'pointer'.