KilledByAPixel / LittleJS

LittleJS is a fast HTML5 game engine with many features and no dependencies. 🚂 Choo-Choo!
Other
3.35k stars 172 forks source link

rework input to use KeyboardEvent.code #81

Closed KilledByAPixel closed 4 months ago

KilledByAPixel commented 4 months ago

I need to switch the input system over to use the KeyboardEvent.code property. This is superior to keyCode which is depricated.

https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code

KilledByAPixel commented 4 months ago

Done! https://github.com/KilledByAPixel/LittleJS/commit/0cbdd3f2cdce8d093b0174dacc5d2ddc1c0331dd