2 ; Ullrich von Bassewitz, 2004-03-23
4 ; void __fastcall__ mouse_box (int minx, int miny, int maxx, int maxy);
5 ; /* Set the bounding box for the mouse pointer movement. The mouse X and Y
6 ; * coordinates will never go outside the given box.
7 ; * NOTE: The function does *not* check if the mouse is currently inside the
8 ; * given margins. The proper way to use this function therefore is:
11 ; * - Set the bounding box
12 ; * - Place the mouse at the desired position
13 ; * - Show the mouse again.
15 ; * NOTE2: When setting the box to something that is larger than the actual
16 ; * screen, the positioning of the mouse cursor can fail. If such margins
17 ; * are really what you want, you have to use your own cursor routines.
23 .include "mouse-kernel.inc"
27 jsr mouse_box ; Call the driver
28 jmp incsp6 ; Cleanup the stack