From 1b6a5f1d9bc560e8483e488975ff0c59f7bc2321 Mon Sep 17 00:00:00 2001 From: hidnplayr Date: Tue, 30 Dec 2014 10:26:09 +0000 Subject: [PATCH] Fix codes for multimedia keys. git-svn-id: svn://kolibrios.org@5294 a494cfbc-eb01-0410-851d-a64ba20cac60 --- drivers/usb/usbhid/multimedia.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/usb/usbhid/multimedia.inc b/drivers/usb/usbhid/multimedia.inc index d20a837b37..ee800eea0b 100644 --- a/drivers/usb/usbhid/multimedia.inc +++ b/drivers/usb/usbhid/multimedia.inc @@ -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