From 4e3e119a57b3e3c639b494600d35400bc6bfc67c Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Wed, 16 Dec 2015 13:52:36 +0000 Subject: [PATCH] Setup app: update, Mouse_cfg: small fix git-svn-id: svn://kolibrios.org@5973 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/mouse_cfg/kos_mouse_functions.h | 2 +- programs/system/setup/trunk/setup.asm | 12 +++++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/programs/cmm/mouse_cfg/kos_mouse_functions.h b/programs/cmm/mouse_cfg/kos_mouse_functions.h index 222d35d9a7..26366a21ef 100644 --- a/programs/cmm/mouse_cfg/kos_mouse_functions.h +++ b/programs/cmm/mouse_cfg/kos_mouse_functions.h @@ -37,6 +37,6 @@ inline fastcall int GetMouseDoubleClickDelay() { inline fastcall void SetMouseDoubleClickDelay(DL) { $mov eax,18 $mov ebx,19 - $mov ecx,6 + $mov ecx,7 $int 0x40 } \ No newline at end of file diff --git a/programs/system/setup/trunk/setup.asm b/programs/system/setup/trunk/setup.asm index a45f251576..f3d102ddc2 100644 --- a/programs/system/setup/trunk/setup.asm +++ b/programs/system/setup/trunk/setup.asm @@ -76,10 +76,15 @@ BootSettings: mov edx,eax mcall 18,19,1 -; Set mouse delay - invoke ini.get_int, sz_ini, sz_mouse, sz_delay, 1 +; Set mouse acceleration + invoke ini.get_int, sz_ini, sz_mouse, sz_acceleration, 1 mov edx,eax mcall 18,19,3 + +; Set mouse double click delay + invoke ini.get_int, sz_ini, sz_mouse, sz_double_click_delay, 1 + mov edx,eax + mcall 18,19,7 ; Enable/disable LBA access for applications mov dword[param],0 @@ -466,7 +471,8 @@ sz_speaker db "speaker mute",0 sz_mouse db "mouse",0 sz_speed db "speed",0 -sz_delay db "delay",0 +sz_acceleration db "acceleration",0 +sz_double_click_delay db "double_click_delay",0 sz_low_level db "low-level",0 sz_lba db "LBA",0