3 ms·
For games, I usually want to handle at the level of keydown and keyup rather than keystrokes. What’s the keystroke for right-arrow, spacebar, left-shift, and W
by sokoloff 6y ago
For games, I usually want to handle at the level of keydown and keyup rather than keystrokes.
What’s the keystroke for right-arrow, spacebar, left-shift, and W all being held down?
(Think of an Asteroids arcade game where w is thrust, spacebar is fire, left-shift is shields, and right arrow is rotate. Those are up/down, not strokes, that the player is giving you.)