Dead Hackers Society
Other BBSes »
 
 
Demoscene  Coding  CT60  Buy/sell

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]

Topic Posted by  Date 
how to read key codes? mikro Aug,26.2006-22:38
  Re: how to read key codes? Patrice Mandin Aug,26.2006-23:08
    Re: how to read key codes? mikro Aug,27.2006-10:00
      Re: how to read key codes? Patrice Mandin Aug,27.2006-19:12
        Re: how to read key codes? mikro Aug,31.2006-02:24
          Re: how to read key codes? Patrice Mandin Aug,31.2006-10:48
      Re: how to read key codes? Patrice Mandin (again :) Aug,27.2006-23:37


Reply to this message
Name:
Topic:
Anti-troll code:

Message:

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.
© 1994-2024 Dead Hackers Society Contact: Anders Eriksson