kierenj / 0x10c-DevKit

0x10c DevKit
http://0x10c-devkit.com/
39 stars 4 forks source link

Backspace key doesn't fire 'typed' interrupts #198

Open scunning opened 12 years ago

scunning commented 12 years ago

The generic keyboard currently makes the backspace key fires 'pressed' and 'released' interrupts rather than 'typed' interrupts. This means that holding it down to have multiple characters removed in succession can't work.

kierenj commented 12 years ago

Can you confirm the official (RC1) emulator has different behaviour? It should be copying that exactly - but if not, we can certainly fix!

scunning commented 12 years ago

Holding down the backspace key in the RC1 emulator does cause multiple characters to be removed in succession and the behavior (delay before repeating and repeat rate) is identical to holding down a character key.

scunning commented 12 years ago

After looking through the rc1 and your emulator's source code (and writing a test app) it now looks like the problem is that AWT generates both 'pressed' and 'typed' events for the RC1 emulator when backspace is pressed while Windows, based the observed behavior of your emulator, only generates 'pressed' events. The RC1 emulator also doesn't appear to ignore repeated pressed events.