maxogden/voxel-engine — pull request #29 by YenTheFirst (2013-01-30 06:24:16+00:00)
Title: Basic customizable controls

players can set controls by:
game.playerControls = game.controlLayouts.dvorak; //or .azerty, or .qwerty.

game logic can store multiple modal or default layouts in controlLayouts, and switch between them (i.e., a mode for vehicles and for walking).

the control layout format is a dictionary of keycode: command tuples.