property Pads.config

パッドのデフォルト設定(1P/2Pのキーマッピング)だよ ⚙️🗺️

デフォルト値:

  • 1P (index 0): b0: "KeyZ", b1: "KeyX", b2: "KeyC", b3: "KeyV", left: "ArrowLeft", right: "ArrowRight", up: "ArrowUp", down: "ArrowDown"
  • 2P (index 1): b0: "KeyA", b1: "KeyS", b2: "KeyD", b3: "KeyF", left: "KeyJ", right: "KeyL", up: "KeyI", down: "KeyK"

Properties

keyMaps: { b0: string; b1: string; b2: string; b3: string; left: string; right: string; up: string; down: string; }[]

Usage

import { Pads } from ".";