Hacker News new | ask | show | jobs
by Moru 4477 days ago
Butbutbut... this is what SCANCODES are for... Why aren't people using that for games nowadays? Is it out of fashion already?
1 comments

I agree entirely. I attribute the lack of scancode usage in keybindings to the laziness and depravity of the young generation ;)

Actually, Javascript is a little weird with regard to scancodes. Try playing with http://javascript.info/tutorial/keyboard-events in different keyboard layouts - you'll notice that there's no code that's consistent across different layouts.