Add hjkl
placeholder keybindings for room mode
Committed ee12e0
--- a/canopy/templates/template.html
+++ b/canopy/templates/template.html
document.addEventListener('keydown', ev => {
if (mode == 'room') {
- if (ev.key == 'w') { // w TODO move up (in room)
- } else if (ev.key == 'a') { // a TODO move left (in room)
- } else if (ev.key == 's') { // s TODO move down (in room)
- } else if (ev.key == 'd') { // d TODO move right (in room)
+ if (ev.key == 'w') { // w TODO walk forward
+ } else if (ev.key == 'a') { // a TODO strafe left
+ } else if (ev.key == 's') { // s TODO walk backward
+ } else if (ev.key == 'd') { // d TODO strafe right
+ } else if (ev.key == 'h') { // h TODO pan left
+ } else if (ev.key == 'j') { // j TODO scroll map down
+ } else if (ev.key == 'k') { // k TODO scroll map up
+ } else if (ev.key == 'l') { // l TODO pan right
}
return
}