|
Atari coding BBS
Re: how to read key codes? |
Posted by: mikro
|
Aug,27.2006-10:00
|
hello patrice,
thank you for the tip about preserving registers. My first implementation was in C (incl. custom keyboard handler) and there are probably some registers used (even in empty function body). After rewritting to asm it works completely in user space (keyboard handler is called as interrupt of course). So now i'm happy i can check even keys like ctrl, shift etc :)
Btw this solution still isn't very clean -- under MiNT+MP this code has to run as "Super" (not "Private") since IKBD exceptions belong to kernel space... but without some API we just can do nothing :/
|
[All messages in this thread] [Start new thread]
What's the anti-troll code? That's your personal code to be able to add comments and messages on the dhs.nu site.
Don't have a code or forgot it? Fix it here.
|