kpreid / cubes

Block-based WebGL game engine where the blocks are made out of blocks. Trying not to be yet another Minecraft clone.
https://kpreid.github.io/cubes/cubes.html
64 stars 10 forks source link

Add configurable keybindings #39

Closed kpreid closed 12 years ago

kpreid commented 12 years ago

Add a way to customize the key (and mouse button) bindings. Look into if there is an existing library for the job. If not, maybe write one that is separate from Cubes.

UI design sketch: List all the functions, have a widget you click on followed by the desired key/button (focus it, have it catch all events). For an already bound function, have an "+" button which lets you specify additional bindings.

Extras:

kpreid commented 12 years ago

Done in commit 6778ef1bb5a7a20bc57035c4d1997900b961942e, without the extras.

kpreid commented 12 years ago

Extras filed as #50 and #51.