forked from KolibriOS/kolibrios
Tinypad - correctly handles pressing of the system hotkey Win+KEY
git-svn-id: svn://kolibrios.org@2637 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
fdcea03c64
commit
4338730574
@ -69,6 +69,8 @@ ext db ?
|
|||||||
chr dd ?
|
chr dd ?
|
||||||
shi dd ?
|
shi dd ?
|
||||||
|
|
||||||
|
win_key_flag db ?
|
||||||
|
|
||||||
align 4
|
align 4
|
||||||
cl_3d_normal dd ?
|
cl_3d_normal dd ?
|
||||||
cl_3d_pushed dd ?
|
cl_3d_pushed dd ?
|
||||||
|
@ -23,6 +23,26 @@ key:
|
|||||||
cmp al,0
|
cmp al,0
|
||||||
jne still.skip_write
|
jne still.skip_write
|
||||||
shr eax,8
|
shr eax,8
|
||||||
|
;--------------------------------------
|
||||||
|
cmp al,91 ; RWin DOWN
|
||||||
|
je .set_win_key_flag
|
||||||
|
cmp al,92 ; LWin DOWN
|
||||||
|
jne @f
|
||||||
|
.set_win_key_flag:
|
||||||
|
mov [win_key_flag],1
|
||||||
|
jmp still.skip_write
|
||||||
|
@@:
|
||||||
|
cmp al,219 ; RWin UP
|
||||||
|
je .cut_win_key_flag
|
||||||
|
cmp al,220 ; LWin UP
|
||||||
|
jne @f
|
||||||
|
.cut_win_key_flag:
|
||||||
|
mov [win_key_flag],0
|
||||||
|
jmp still.skip_write
|
||||||
|
@@:
|
||||||
|
cmp [win_key_flag],1
|
||||||
|
je still.skip_write
|
||||||
|
;--------------------------------------
|
||||||
cmp al,224
|
cmp al,224
|
||||||
jne @f
|
jne @f
|
||||||
mov [ext],0x01
|
mov [ext],0x01
|
||||||
|
Loading…
Reference in New Issue
Block a user