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
This commit is contained in:
Marat Zakiyanov (Mario79) 2012-06-01 01:03:15 +00:00
parent dfaeeb56ff
commit 42282ca67f
2 changed files with 24 additions and 17 deletions

View File

@ -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 @pause

View File

@ -2,6 +2,11 @@
; compiler: FASM 1.67.23 ; compiler: FASM 1.67.23
; name: Mouse Emulation For KolibriOS ; 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 ; version: 1.1
; last update: 26/05/2012 ; last update: 26/05/2012
; written by: Lipatov Kirill aka Leency ; written by: Lipatov Kirill aka Leency
@ -30,9 +35,7 @@ MEOS_APP_START
CODE CODE
;----------------------------------------------------------------------------- ;-----------------------------------------------------------------------------
start: start:
mov eax,70 mcall 70,notifyapp
mov ebx,notifyapp
mcall
start1: start1:
xor ebx,ebx xor ebx,ebx
@ -41,7 +44,7 @@ start1:
mcall 23,10 mcall 23,10
mcall 66,3 mcall 66,3
test eax,0x80 test eax,0x80 ;NumLock status
jz @r jz @r
mov ebx,4 mov ebx,4
@ -61,7 +64,7 @@ key: ; key event handler
push eax push eax
mcall 66,3 mcall 66,3
test eax,0x80 test eax,0x80 ;NumLock status
pop eax pop eax
jnz @f jnz @f
mov ebx,5 mov ebx,5
@ -270,6 +273,9 @@ hotkeys_common:
mov cl,73 ; Down Num 9 mov cl,73 ; Down Num 9
mcall 66 mcall 66
; disable/enable input, work only hotkeys (f.66.6,66.7)
add ebx,2
mcall 66
ret ret
;----------------------------------------------------------------------------- ;-----------------------------------------------------------------------------
; <--- initialised data ---> ; <--- initialised data --->
@ -280,7 +286,7 @@ UDATA
mouse_timer_ticks dd 0 mouse_timer_ticks dd 0
;----------------------------------------------------------------------------- ;-----------------------------------------------------------------------------
if lang eq ru if lang eq ru
ud_user_message db 'NumLock ¢ª«/¢ëª« í¬ã«ïâ®à ¬ëè¨. “¯à ¢«¥­¨¥ Numpad',0 ;㤠«¨âì áâà®çªã ¨§ å®â_ª¥©§ ud_user_message db 'NumLock ¢ª«/¢ëª« í¬ã«ïâ®à ¬ëè¨. “¯à ¢«¥­¨¥ Numpad',0
else else
ud_user_message db 'NumLock - on/off mouse emul. Numpad - move cursor',0 ud_user_message db 'NumLock - on/off mouse emul. Numpad - move cursor',0
end if end if
@ -293,9 +299,6 @@ notifyapp:
dd 0 dd 0
db '@notify',0 db '@notify',0
;----------------------------------------------------------------------------- ;-----------------------------------------------------------------------------
MEOS_APP_END MEOS_APP_END
; <--- end of KolibriOS application ---> ; <--- end of KolibriOS application --->
; ZG ; ZG