DCPU-16 icon indicating copy to clipboard operation
DCPU-16 copied to clipboard

Keyboard Hardware Device

Open alexander-bauer opened this issue 12 years ago • 1 comments

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?

alexander-bauer avatar May 24 '12 21:05 alexander-bauer

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.

a1k0n avatar Jun 30 '12 13:06 a1k0n