/programs/cmm/lib/kolibri.h |
---|
103,12 → 103,24 |
$shr eax,8 |
} |
unsigned char key_ascii; |
dword key_scancode, key_modifier; |
int GetKeys() |
{ |
$push edx |
GETKEY: |
$mov eax,2 |
$int 0x40 |
$cmp eax,1 |
$jne GETKEYI |
$mov eax,edx |
$jmp GETKEYII |
GETKEYI: |
$mov edx,eax |
$jmp GETKEY |
GETKEYII: |
$pop edx |
key_ascii = AH; |
$shr eax,16 |
key_scancode = AL; |