|
|
|
|
|
by dpham
4640 days ago
|
|
It doesn't have to do with hardware, it's just client-side implementation. I had to write code for multiple key presses before. The browser will normally trigger a keydown and keyup event whenever something is pressed and released. The trick is to keep an array of keyCodes representing current keydowns; during keydowns add to array and during keyups, remove from array. |
|
See https://en.wikipedia.org/wiki/Rollover_(key)