Fix codes for multimedia keys.

git-svn-id: svn://kolibrios.org@5294 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
hidnplayr 2014-12-30 10:26:09 +00:00
parent ac3a880786
commit 1b6a5f1d9b

View File

@ -148,8 +148,9 @@ end if
test edx, edx
jz .multimedia_key_released
.multimedia_key_pressed:
mov [edi+multimedia_device_data.last_pressed], eax
; The key is pressed.
push ecx
push eax
mov ecx, 0xE0
invoke SetKeyboardData
pop ecx
@ -160,7 +161,7 @@ end if
mov [edi+multimedia_device_data.last_pressed], 0
; The key is released.
or cl, 0x80
push ecx
push eax
mov ecx, 0xE0
invoke SetKeyboardData
pop ecx