From 42282ca67f78341361b85ca8993cd15df0429705 Mon Sep 17 00:00:00 2001 From: "Marat Zakiyanov (Mario79)" Date: Fri, 1 Jun 2012 01:03:15 +0000 Subject: [PATCH] MousEmul v1.2 - use the functions of 66.6, 66.7 (bug #33) git-svn-id: svn://kolibrios.org@2710 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/system/mousemul/trunk/build.bat | 6 +++- programs/system/mousemul/trunk/mousemul.asm | 35 +++++++++++---------- 2 files changed, 24 insertions(+), 17 deletions(-) diff --git a/programs/system/mousemul/trunk/build.bat b/programs/system/mousemul/trunk/build.bat index 5e2ced9449..7ef86920ae 100644 --- a/programs/system/mousemul/trunk/build.bat +++ b/programs/system/mousemul/trunk/build.bat @@ -1,2 +1,6 @@ -@fasm mousemul.asm mousemul +@erase lang.inc +@echo lang fix ru >lang.inc +@fasm -m 16384 mousemul.asm mousemul +@kpack mousemul +@erase lang.inc @pause \ No newline at end of file diff --git a/programs/system/mousemul/trunk/mousemul.asm b/programs/system/mousemul/trunk/mousemul.asm index 4bb5337200..21ccbcd9da 100644 --- a/programs/system/mousemul/trunk/mousemul.asm +++ b/programs/system/mousemul/trunk/mousemul.asm @@ -2,6 +2,11 @@ ; compiler: FASM 1.67.23 ; name: Mouse Emulation For KolibriOS ;----------------------------------------------------------------------------- +; version: 1.2 +; last update: 01/06/2012 +; written by: Marat Zakiyanov aka Mario79, aka Mario +; changes: using new functions 66.6 and 66.7 +;----------------------------------------------------------------------------- ; version: 1.1 ; last update: 26/05/2012 ; written by: Lipatov Kirill aka Leency @@ -30,9 +35,7 @@ MEOS_APP_START CODE ;----------------------------------------------------------------------------- start: - mov eax,70 - mov ebx,notifyapp - mcall + mcall 70,notifyapp start1: xor ebx,ebx @@ -41,7 +44,7 @@ start1: mcall 23,10 mcall 66,3 - test eax,0x80 + test eax,0x80 ;NumLock status jz @r mov ebx,4 @@ -61,11 +64,11 @@ key: ; key event handler push eax mcall 66,3 - test eax,0x80 + test eax,0x80 ;NumLock status pop eax jnz @f mov ebx,5 - call hotkeys_common + call hotkeys_common jmp start1 @@: cmp al,2 @@ -270,6 +273,9 @@ hotkeys_common: mov cl,73 ; Down Num 9 mcall 66 +; disable/enable input, work only hotkeys (f.66.6,66.7) + add ebx,2 + mcall 66 ret ;----------------------------------------------------------------------------- ; <--- initialised data ---> @@ -280,22 +286,19 @@ UDATA mouse_timer_ticks dd 0 ;----------------------------------------------------------------------------- if lang eq ru -ud_user_message db 'NumLock вкл/выкл эмулятор мыши. Управление Numpad',0 ;удалить строчку из хот_кейз +ud_user_message db 'NumLock вкл/выкл эмулятор мыши. Управление Numpad',0 else ud_user_message db 'NumLock - on/off mouse emul. Numpad - move cursor',0 end if notifyapp: - dd 7 - dd 0 - dd ud_user_message - dd 0 - dd 0 - db '@notify',0 + dd 7 + dd 0 + dd ud_user_message + dd 0 + dd 0 + db '@notify',0 ;----------------------------------------------------------------------------- - - - MEOS_APP_END ; <--- end of KolibriOS application ---> ; ZG \ No newline at end of file