forked from KolibriOS/kolibrios
Fix codes for multimedia keys.
git-svn-id: svn://kolibrios.org@5294 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
ac3a880786
commit
1b6a5f1d9b
@ -148,8 +148,9 @@ end if
|
|||||||
test edx, edx
|
test edx, edx
|
||||||
jz .multimedia_key_released
|
jz .multimedia_key_released
|
||||||
.multimedia_key_pressed:
|
.multimedia_key_pressed:
|
||||||
|
mov [edi+multimedia_device_data.last_pressed], eax
|
||||||
; The key is pressed.
|
; The key is pressed.
|
||||||
push ecx
|
push eax
|
||||||
mov ecx, 0xE0
|
mov ecx, 0xE0
|
||||||
invoke SetKeyboardData
|
invoke SetKeyboardData
|
||||||
pop ecx
|
pop ecx
|
||||||
@ -160,7 +161,7 @@ end if
|
|||||||
mov [edi+multimedia_device_data.last_pressed], 0
|
mov [edi+multimedia_device_data.last_pressed], 0
|
||||||
; The key is released.
|
; The key is released.
|
||||||
or cl, 0x80
|
or cl, 0x80
|
||||||
push ecx
|
push eax
|
||||||
mov ecx, 0xE0
|
mov ecx, 0xE0
|
||||||
invoke SetKeyboardData
|
invoke SetKeyboardData
|
||||||
pop ecx
|
pop ecx
|
||||||
|
Loading…
Reference in New Issue
Block a user