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

    Interface UseKeyboardControlsProps

    Props for useKeyboardControls hook

    interface UseKeyboardControlsProps {
        currentAnimationState?: string;
        currentStance?: number;
        enabled?: boolean;
        onAction: (action: string) => void;
        onStanceChange: (stance: number) => void;
        onToggleHints?: () => void;
        playSFX?: (soundId: string) => void;
    }
    Index

    Properties

    currentAnimationState?: string

    Current animation state for grounded detection

    currentStance?: number

    Current stance index (0-7) for validation

    enabled?: boolean

    Whether keyboard input is enabled

    onAction: (action: string) => void

    Callback for combat actions (attack, block, etc.)

    onStanceChange: (stance: number) => void

    Callback when stance changes (receives stance index 0-7)

    onToggleHints?: () => void

    Callback when hints toggle is requested

    playSFX?: (soundId: string) => void

    Play sound effect function