@benev/nubs
Version:
user-input system for web games
27 lines (24 loc) • 368 B
text/typescript
import {KeyLayout} from "../key-layout.js"
export const compact = [
[
["q", "KeyQ"],
["w", "KeyW"],
["e", "KeyE"],
["r", "KeyR"],
["t", "KeyT"],
],
[
["a", "KeyA"],
["s", "KeyS"],
["d", "KeyD"],
["f", "KeyF"],
["g", "KeyG"],
],
[
["z", "KeyZ"],
["x", "KeyX"],
["c", "KeyC"],
["v", "KeyV"],
["b", "KeyB"],
],
] satisfies KeyLayout