Black Trigram (흑괘) - Korean Martial Arts Combat Simulator API - v0.7.0
    Preparing search index...

    Interface VirtualDPadProps

    Props for VirtualDPad component

    interface VirtualDPadProps {
        bottom?: number;
        disabled?: boolean;
        left?: number;
        onMove: (direction: Direction | null, eventType: DPadEventType) => void;
        opacity?: number;
        size?: number;
    }
    Index

    Properties

    bottom?: number

    Position from bottom in pixels (default: 34 for safe area)

    disabled?: boolean

    Whether D-Pad is disabled

    left?: number

    Position from left in pixels (default: 20)

    onMove: (direction: Direction | null, eventType: DPadEventType) => void

    Callback when direction changes

    opacity?: number

    Opacity of the D-Pad (default: 0.8)

    size?: number

    Size of the D-Pad in pixels (default: 140)