Live data from Hacker News

Interactive 3D ASCII scenes

yeahpython.github.io

21–30 of 62 posts

Re: Interactive 3D ASCII scenes

#26
post #10

About WASD controls and alternative layouts: apparently JS supports key codes. [1] https://www.w3schools.com/jsref/event_key_keycode.asp [2] https://keycode.info/ Edit: Apparently it is deprecated: [3] https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEve... [4] https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEve... Also there doesn't seem to be a way to detect the user's preferred layout before press…

The linked article [3] links to KeyboardEvent.code which is not deprecated and still supports physical layout
Post reply on HN