Subversion Repositories Kolibri OS

Rev

Rev 864 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 864 Rev 928
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
4
;; Copyright (C) MenuetOS 2000-2004 Ville Mikael Turjanmaa      ;;
4
;; Copyright (C) MenuetOS 2000-2004 Ville Mikael Turjanmaa      ;;
5
;; Distributed under terms of the GNU General Public License    ;;
5
;; Distributed under terms of the GNU General Public License    ;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 7... Line 7...
7
 
7
 
Line 8... Line 8...
8
$Revision: 864 $
8
$Revision: 928 $
9
 
9
 
Line 505... Line 505...
505
        cmp     ebx, 2
505
        cmp     ebx, 2
506
        jnz     .ret
506
        jnz     .ret
507
.sendkey:
507
.sendkey:
508
        pushf
508
        pushf
509
        cli
509
        cli
510
        movzx   eax, byte [KEY_COUNT]
510
        mov  eax, [KEY_COUNT]
511
        cmp     al, 120
511
        cmp  eax, 120
512
        jae     .overflow
512
        jae  .overflow
513
        inc     eax
513
        inc  eax
514
        mov     [KEY_COUNT], al
514
        mov  [KEY_COUNT], eax
515
        mov     [KEY_COUNT+eax], cl
515
        mov  [KEY_BUFF+eax-1], cl
516
        jmp     .ok
516
        jmp  .ok
517
.overflow:
517
.overflow:
518
        popf
518
        popf
519
        mov     dword [esp+36], 1
519
        mov     dword [esp+36], 1
520
        ret
520
        ret
521
.sendbtn:
521
.sendbtn:
522
        pushf
522
        pushf
523
        cli
523
        cli
524
        cmp     byte [BTN_COUNT], 0
524
        cmp     [BTN_COUNT], 0
525
        jnz     .overflow
525
        jnz     .overflow
526
        mov     byte [BTN_COUNT], 1
526
        mov     [BTN_COUNT], 1
527
        mov     [BTN_BUFF], ecx
527
        mov     [BTN_BUFF], ecx
528
.ok:
528
.ok:
529
        popf
529
        popf
530
        and     dword [esp+36], 0
530
        and     dword [esp+36], 0
531
.ret:
531
.ret:
Line 552... Line 552...
552
     mov   ecx, [CURRENT_TASK]
552
     mov   ecx, [CURRENT_TASK]
553
     movzx edx,word [WIN_STACK+ecx*2]
553
     movzx edx,word [WIN_STACK+ecx*2]
554
     mov   eax, [TASK_COUNT]
554
     mov   eax, [TASK_COUNT]
555
     cmp   eax,edx
555
     cmp   eax,edx
556
     jne   no_eventoccur2x
556
     jne   no_eventoccur2x
557
     cmp   [KEY_COUNT],byte 0
557
     cmp   [KEY_COUNT], 0
558
     je    no_eventoccur2x
558
     je    no_eventoccur2x
559
   eventoccur2:
559
   eventoccur2:
560
     popad
560
     popad
561
     mov   eax,2
561
     mov   eax,2
562
     ret
562
     ret
Line 571... Line 571...
571
   no_eventoccur2:
571
   no_eventoccur2:
Line 572... Line 572...
572
 
572
 
573
     ;mov   edi,[TASK_BASE]              ; BUTTON IN BUFFER
573
     ;mov   edi,[TASK_BASE]              ; BUTTON IN BUFFER
574
     test  [edi+TASKDATA.event_mask],dword 4
574
     test  [edi+TASKDATA.event_mask],dword 4
575
     jz    no_eventoccur3
575
     jz    no_eventoccur3
576
     cmp   [BTN_COUNT],byte 0
576
     cmp   [BTN_COUNT], 0
577
     je    no_eventoccur3
577
     je    no_eventoccur3
578
     mov   ecx, [CURRENT_TASK]
578
     mov   ecx, [CURRENT_TASK]
579
     movzx edx, word [WIN_STACK+ecx*2]
579
     movzx edx, word [WIN_STACK+ecx*2]
580
     mov   eax, [TASK_COUNT]
580
     mov   eax, [TASK_COUNT]
Line 587... Line 587...
587
     mov   eax,3
587
     mov   eax,3
588
     ret
588
     ret
Line 589... Line 589...
589
 
589
 
590
    no_event_1:
590
    no_event_1:
591
     mov   [window_minimize],1
591
     mov   [window_minimize],1
592
     mov   [BTN_COUNT],byte 0
592
     mov   [BTN_COUNT], 0
593
     xor   eax, eax
593
     xor   eax, eax
Line 594... Line 594...
594
     ret
594
     ret
Line 611... Line 611...
611
no_mouse_event:
611
no_mouse_event:
Line 612... Line 612...
612
 
612
 
613
     ;mov   edi,[TASK_BASE]              ; DESKTOP BACKGROUND REDRAW
613
     ;mov   edi,[TASK_BASE]              ; DESKTOP BACKGROUND REDRAW
614
     test  [edi+TASKDATA.event_mask], 16
614
     test  [edi+TASKDATA.event_mask], 16
615
     jz    no_eventoccur5
615
     jz    no_eventoccur5
616
;     cmp   [REDRAW_BACKGROUND],byte 2
616
;     cmp   [redraw_background], 2
617
;     jnz   no_eventoccur5
617
;     jnz   no_eventoccur5
618
     test  [eax+APPDATA.event_mask], 16
618
     test  [eax+APPDATA.event_mask], 16
619
     jz    no_eventoccur5
619
     jz    no_eventoccur5
620
     and   [eax+APPDATA.event_mask], not 16
620
     and   [eax+APPDATA.event_mask], not 16