Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
anslo
· 4y ago · 0 comments
Rookie error on my part, apologies - I was needlessly agonising over having to make string comparisons in my input controller. This week I'll be refactoring it to use a map, and be adding some UI for remapping.
Comments
[–]
meheleventyone
4y ago
You can also map to physical key codes:
https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEve...
[–]
mlok
4y ago
Thank you for caring for this :)