Subversion Repositories Kolibri OS

Rev

Rev 3628 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3628 Rev 4814
Line 1... Line 1...
1
; <--- description --->
1
; <--- description --->
2
; compiler:     FASM 1.67.23
2
; compiler:     FASM 1.67.23
3
; name:         Mouse Emulation For KolibriOS
3
; name:         Mouse Emulation For KolibriOS
4
;-----------------------------------------------------------------------------
4
;-----------------------------------------------------------------------------
5
; version:	1.2
5
; version:      1.2
6
; last update:  01/06/2012
6
; last update:  01/06/2012
7
; written by:   Marat Zakiyanov aka Mario79, aka Mario
7
; written by:   Marat Zakiyanov aka Mario79, aka Mario
8
; changes:      using new functions 66.6 and 66.7
8
; changes:      using new functions 66.6 and 66.7
9
;-----------------------------------------------------------------------------
9
;-----------------------------------------------------------------------------
10
; version:	1.1
10
; version:      1.1
11
; last update:  26/05/2012
11
; last update:  26/05/2012
12
; written by:   Lipatov Kirill aka Leency
12
; written by:   Lipatov Kirill aka Leency
13
; changes:      shows notify with instructions, while opening program
13
; changes:      shows notify with instructions, while opening program
14
;-----------------------------------------------------------------------------
14
;-----------------------------------------------------------------------------
15
; version:	1.0
15
; version:      1.0
16
; last update:  04/09/2010
16
; last update:  04/09/2010
17
; written by:   Marat Zakiyanov aka Mario79, aka Mario
17
; written by:   Marat Zakiyanov aka Mario79, aka Mario
18
; changes:      total optimization of code,
18
; changes:      total optimization of code,
19
;               different events for Up and Down of key Num 5
19
;               different events for Up and Down of key Num 5
20
;               advansed acceleration mode
20
;               advansed acceleration mode
Line 158... Line 158...
158
 
158
 
159
real:
159
real:
160
	mov	ebx,edx
160
	mov	ebx,edx
161
	mov	edi,ebx
161
	mov	edi,ebx
162
	shr	ebx,16 ; get x1
162
	shr	ebx,16 ; get x1
163
;	shl	edi,16 ; get y1
163
;       shl     edi,16 ; get y1
164
;	shr	edi,16
164
;       shr     edi,16
Line 165... Line 165...
165
	and	edi,0xffff
165
	and	edi,0xffff
166
 
166
 
167
nullli:
167
nullli:
Line 178... Line 178...
178
razr:
178
razr:
179
	mcall	14
179
	mcall	14
Line 180... Line 180...
180
 
180
 
181
	mov	ecx,eax
181
	mov	ecx,eax
182
	shr	eax,16 ; get x2
182
	shr	eax,16 ; get x2
183
;	shl	ecx,16 ; get y2
183
;       shl     ecx,16 ; get y2
184
;	shr	ecx,16
184
;       shr     ecx,16
Line 185... Line 185...
185
	and	ecx,0xffff
185
	and	ecx,0xffff
186
 
186
 
187
rightdownli:
187
rightdownli:
Line 284... Line 284...
284
; <--- uninitialised data --->
284
; <--- uninitialised data --->
285
UDATA
285
UDATA
286
mouse_timer_ticks	dd 0
286
mouse_timer_ticks	dd 0
287
;-----------------------------------------------------------------------------
287
;-----------------------------------------------------------------------------
288
if lang eq ru
288
if lang eq ru
289
	ud_user_message db 'NumLock ¢ª«î砥⠨ ¢ëª«îç ¥â í¬ã«ïâ®à ¬ëè¨. “¯à ¢«¥­¨¥ ç¥à¥§ Numpad',0
289
	ud_user_message db '"NumLock ¢ª«î砥⠨ ¢ëª«îç ¥â í¬ã«ïâ®à ¬ëè¨.\n“¯à ¢«¥­¨¥ ç¥à¥§ Numpad." -I',0
290
else if lang eq it
290
else if lang eq it
291
	ud_user_message db 'NumLock - on/off - usa Numpad per muovere il cursore',0
291
	ud_user_message db '"NumLock - on/off - usa Numpad per muovere il cursore." -I',0
292
else
292
else
293
	ud_user_message db 'NumLock - on/off mouse emul. Numpad - move cursor',0
293
	ud_user_message db '"NumLock - on/off mouse emul. Numpad - move cursor." -I',0
294
end if
294
end if
Line 295... Line 295...
295
 
295
 
296
notifyapp:
296
notifyapp:
297
	dd 7
297
	dd 7