]> git.sur5r.net Git - cc65/blob - libsrc/mouse/mouse_hide.s
Removed (pretty inconsistently used) tab chars from source code base.
[cc65] / libsrc / mouse / mouse_hide.s
1 ;
2 ; Ullrich von Bassewitz, 2003-12-30
3 ;
4 ; void mouse_hide (void);
5 ; /* Hide the mouse. The function manages a counter and may be called more than
6 ;  * once. For each call to mouse_hide there must be a call to mouse_show to make
7 ;  * the mouse visible again.
8 ;  */
9 ;
10
11         .include        "mouse-kernel.inc"
12
13 .proc   _mouse_hide
14
15         lda     _mouse_hidden           ; Get the flag
16         bne     @L1                     ; Jump if already invisible
17         jsr     mouse_hide              ; Call the driver
18 @L1:    inc     _mouse_hidden           ; Set the flag to invisible
19         rts
20
21 .endproc