forked from KolibriOS/kolibrios
Tinypad works with ALT GR keymap now.
git-svn-id: svn://kolibrios.org@3669 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
80d33b91c3
commit
b982a70c5b
@ -2,16 +2,16 @@ diff16 'tp-key.asm',0,$
|
|||||||
|
|
||||||
key:
|
key:
|
||||||
mov ecx,1
|
mov ecx,1
|
||||||
mcall 66,3
|
mcall 66,3 ; Get status of the control keys
|
||||||
mov [shi],eax
|
mov [shi],eax
|
||||||
xor ebx,ebx
|
xor ebx,ebx
|
||||||
test al,0x03
|
test al,0x03 ; Left or right shift
|
||||||
jz @f
|
jz @f
|
||||||
or ebx,KM_SHIFT
|
or ebx,KM_SHIFT
|
||||||
@@: test al,0x0C
|
@@: test al,0x0C ; Left or right control
|
||||||
jz @f
|
jz @f
|
||||||
or ebx,KM_CTRL
|
or ebx,KM_CTRL
|
||||||
@@: test al,0x30
|
@@: test al,0x10 ; Left alt
|
||||||
jz @f
|
jz @f
|
||||||
or ebx,KM_ALT
|
or ebx,KM_ALT
|
||||||
@@: mov edx,ebx
|
@@: mov edx,ebx
|
||||||
@ -81,6 +81,12 @@ key:
|
|||||||
jnz .no_caps_lock
|
jnz .no_caps_lock
|
||||||
dec ecx
|
dec ecx
|
||||||
.no_caps_lock:
|
.no_caps_lock:
|
||||||
|
;--------------------------------------
|
||||||
|
; alt gr pressed?
|
||||||
|
test [shi], 0x00000020
|
||||||
|
jz .no_alt_gr
|
||||||
|
mov ecx, 3
|
||||||
|
.no_alt_gr:
|
||||||
;--------------------------------------
|
;--------------------------------------
|
||||||
push eax
|
push eax
|
||||||
mcall 26,2,,key1
|
mcall 26,2,,key1
|
||||||
|
Loading…
Reference in New Issue
Block a user