F66.3 added indication pressing of keys: Win-left and Win-right.

git-svn-id: svn://kolibrios.org@3355 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Marat Zakiyanov (Mario79) 2013-03-08 16:27:43 +00:00
parent f7d75689e4
commit e6d03e93b1
3 changed files with 45 additions and 18 deletions

View File

@ -3423,6 +3423,8 @@ IPC
* ΅¨β 6 (¬ α<C2A0>  0x40): CapsLock Ά<>«ξηρ­
* ΅¨β 7 (¬ α<C2A0>  0x80): NumLock Ά<>«ξηρ­
* ΅¨β 8 (¬ α<C2A0>  0x100): ScrollLock Ά<>«ξηρ­
* ¡¨â 9 (¬ áª  0x200): «¥¢ë© Win ­ ¦ â
* ¡¨â 10 (¬ áª  0x400): ¯à ¢ë© Win ­ ¦ â
* ―ΰ®η¨¥ ΅¨βλ α΅ΰ®θ¥­λ
----- <20>®¤δγ­<CEB3>ζ¨ο 4 - γαβ ­®Ά¨βμ ®΅ι¥α¨α⥬­γξ "£®ΰοηγξ <20>« Ά¨θγ". -----

View File

@ -3403,6 +3403,8 @@ Returned value:
* bit 6 (mask 0x40): CapsLock is on
* bit 7 (mask 0x80): NumLock is on
* bit 8 (mask 0x100): ScrollLock is on
* bit 9 (mask 0x200): left Win is pressed
* bit 10 (mask 0x400): right Win is pressed
* other bits are cleared
-------------- Subfunction 4 - set system-wide hotkey. ---------------

View File

@ -17,6 +17,8 @@ VKEY_RALT = 0000000000100000b
VKEY_CAPSLOCK = 0000000001000000b
VKEY_NUMLOCK = 0000000010000000b
VKEY_SCRLOCK = 0000000100000000b
VKEY_LWIN = 0000001000000000b
VKEY_RWIN = 0000010000000000b
VKEY_SHIFT = 0000000000000011b
VKEY_CONTROL = 0000000000001100b
@ -224,6 +226,27 @@ send_scancode:
xchg cl, [ext_code]
and al, 0x7F
mov bh, 1
;--------------------------------------
@@:
cmp al, 0x5B
jne @f
cmp cl, 0xE0
jne .writekey
mov eax, VKEY_LWIN
jmp .modifier
;--------------------------------------
@@:
cmp al, 0x5C
jne @f
cmp cl, 0xE0
jne .writekey
mov eax, VKEY_RWIN
jmp .modifier
;--------------------------------------
@@:
cmp al, 0x2A
jne @f