'use strict'; // === ACTION DEFINITIONS === // Maps action names to key bindings. Actual key detection is in keyboard.js. const ACTIONS = { move: { keys: ['ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight', 'KeyW', 'KeyA', 'KeyS', 'KeyD'], type: 'hold' }, attack: { keys: ['Space', 'KeyZ'], type: 'press' }, interact: { keys: ['KeyE', 'Enter'], type: 'press' }, menu: { keys: ['KeyI'], type: 'press' }, back: { keys: ['Escape', 'KeyQ'], type: 'press' }, switchWeapon: { keys: ['KeyX'], type: 'press' }, useItem: { keys: ['KeyR'], type: 'press' }, bomb: { keys: ['KeyB'], type: 'press' }, }; // Menu navigation actions const MENU_ACTIONS = { up: { keys: ['ArrowUp', 'KeyW'] }, down: { keys: ['ArrowDown', 'KeyS'] }, left: { keys: ['ArrowLeft', 'KeyA'] }, right: { keys: ['ArrowRight', 'KeyD'] }, select: { keys: ['Enter', 'Space'] }, back: { keys: ['Escape', 'KeyQ'] }, }; if (typeof module !== 'undefined' && module.exports) { module.exports = { ACTIONS, MENU_ACTIONS, initActions: () => {}, getActionState: () => {}, getAction: () => {}, getActiveActions: () => {} }; }