melonJS
    Preparing search index...

    Type Alias ControlArea

    ControlArea:
        | "half"
        | "screen"
        | { height: number; width: number; x: number; y: number }

    Where a floating stick or button can be picked up: "half", its half of the screen; "screen", anywhere; or a rectangle, in viewport pixels.

    Where areas overlap, a finger landing takes the first control free there: fixed buttons, fixed sticks, floating buttons, floating sticks. Floating buttons sharing an area split it: the finger goes to the one resting nearest to it.