DCPU-16
DCPU-16 copied to clipboard
Keyboard Hardware Device
The keyboard seems to be unresponsive to hardware interrupts, or at least fails to accept keypresses properly. The code I'm running is
SET A, 1
HWI 2
Even if this is run in a loop, C is never set to a nonzero value. Is my code incorrect, or is this a bug?
On the current site, it accepts arrow keys but basically nothing else. Because the onkeydown handler always returns false, presumably to prevent typing keys into the code editor while the program is running. But instead of doing that, the run button should un-focus the code editor.