Y
Hacker News
new
|
ask
|
show
|
jobs
by
anslo
1331 days ago
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.
2 comments
meheleventyone
1331 days ago
You can also map to physical key codes:
https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEve...
link
mlok
1331 days ago
Thank you for caring for this :)
link