Rev 3232 | Rev 4288 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3232 | Rev 3555 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | ;; Copyright (C) KolibriOS team 2004-2012. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2012. All rights reserved. ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
5 | ;; ;; |
5 | ;; ;; |
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 7... | Line 7... | ||
7 | 7 | ||
Line 8... | Line 8... | ||
8 | $Revision: 3232 $ |
8 | $Revision: 3555 $ |
9 | 9 | ||
10 | 10 | ||
Line 492... | Line 492... | ||
492 | mov eax, 0 |
492 | mov eax, 0 |
493 | jmp @@M2 |
493 | jmp @@M2 |
494 | ;-------------------------------------- |
494 | ;-------------------------------------- |
495 | align 4 |
495 | align 4 |
496 | @@M1: |
496 | @@M1: |
497 | cmp ax, [Screen_Max_X];ScreenLength |
497 | cmp ax, word [Screen_Max_X];ScreenLength |
498 | jl @@M2 |
498 | jl @@M2 |
499 | mov ax, [Screen_Max_X];ScreenLength-1 |
499 | mov ax, word [Screen_Max_X];ScreenLength-1 |
500 | ;-------------------------------------- |
500 | ;-------------------------------------- |
501 | align 4 |
501 | align 4 |
502 | @@M2: |
502 | @@M2: |
503 | mov [MOUSE_X], ax;[XCoordinate] |
503 | mov [MOUSE_X], ax;[XCoordinate] |
Line 512... | Line 512... | ||
512 | mov ax, 0 |
512 | mov ax, 0 |
513 | jmp @@M4 |
513 | jmp @@M4 |
514 | ;-------------------------------------- |
514 | ;-------------------------------------- |
515 | align 4 |
515 | align 4 |
516 | @@M3: |
516 | @@M3: |
517 | cmp ax, [Screen_Max_Y];ScreenHeigth |
517 | cmp ax, word [Screen_Max_Y];ScreenHeigth |
518 | jl @@M4 |
518 | jl @@M4 |
519 | mov ax, [Screen_Max_Y];ScreenHeigth-1 |
519 | mov ax, word [Screen_Max_Y];ScreenHeigth-1 |
520 | ;-------------------------------------- |
520 | ;-------------------------------------- |
521 | align 4 |
521 | align 4 |
522 | @@M4: |
522 | @@M4: |
523 | mov [MOUSE_Y], ax;[YCoordinate] |
523 | mov [MOUSE_Y], ax;[YCoordinate] |
Line 529... | Line 529... | ||
529 | add [MOUSE_SCROLL_H], ax |
529 | add [MOUSE_SCROLL_H], ax |
Line 530... | Line 530... | ||
530 | 530 | ||
531 | mov [mouse_active], 1 |
531 | mov [mouse_active], 1 |
532 | mov eax, [timer_ticks] |
532 | mov eax, [timer_ticks] |
- | 533 | mov [mouse_timer_ticks], eax |
|
533 | mov [mouse_timer_ticks], eax |
534 | call wakeup_osloop |
534 | ret |
535 | ret |
535 | endp |
536 | endp |
536 | ;----------------------------------------------------------------------------- |
537 | ;----------------------------------------------------------------------------- |
537 | align 4 |
538 | align 4 |