Changed the mouse API: mouse_box is gone, there are now mouse_getbox and
mouse_setbox instead. Beware: Current drivers will crash until they're changed! git-svn-id: svn://svn.cc65.org/cc65/trunk@4230 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -13,7 +13,7 @@ AS = ../../src/ca65/ca65
|
||||
CC = ../../src/cc65/cc65
|
||||
LD = ../../src/ld65/ld65
|
||||
|
||||
AFLAGS = -t $(SYS) -I../../asminc
|
||||
AFLAGS = -t $(SYS) --forget-inc-paths -I../../asminc
|
||||
CFLAGS = -Osir -g -T -t $(SYS) --forget-inc-paths -I . -I ../../include
|
||||
|
||||
#--------------------------------------------------------------------------
|
||||
@@ -32,8 +32,8 @@ CFLAGS = -Osir -g -T -t $(SYS) --forget-inc-paths -I . -I ../../include
|
||||
C_OBJS =
|
||||
|
||||
S_OBJS = mouse-kernel.o \
|
||||
mouse_box.o \
|
||||
mouse_buttons.o \
|
||||
mouse_getbox.o \
|
||||
mouse_geterrormsg.o \
|
||||
mouse_hide.o \
|
||||
mouse_info.o \
|
||||
@@ -41,6 +41,7 @@ S_OBJS = mouse-kernel.o \
|
||||
mouse_load.o \
|
||||
mouse_move.o \
|
||||
mouse_pos.o \
|
||||
mouse_setbox.o \
|
||||
mouse_show.o \
|
||||
mouse_unload.o
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
;
|
||||
; Ullrich von Bassewitz, 2003-12-28
|
||||
; Ullrich von Bassewitz, 2003-12-28, 2009-09-26
|
||||
;
|
||||
; Common functions of the mouse driver API.
|
||||
;
|
||||
@@ -28,7 +28,8 @@ mouse_install: jmp return0
|
||||
mouse_uninstall:jmp return0
|
||||
mouse_hide: jmp return0
|
||||
mouse_show: jmp return0
|
||||
mouse_box: jmp return0
|
||||
mouse_setbox: jmp return0
|
||||
mouse_getbox: jmp return0
|
||||
mouse_move: jmp return0
|
||||
mouse_buttons: jmp return0
|
||||
mouse_pos: jmp return0
|
||||
|
||||
@@ -1,33 +0,0 @@
|
||||
;
|
||||
; Ullrich von Bassewitz, 2004-03-23
|
||||
;
|
||||
; void __fastcall__ mouse_box (int minx, int miny, int maxx, int maxy);
|
||||
; /* Set the bounding box for the mouse pointer movement. The mouse X and Y
|
||||
; * coordinates will never go outside the given box.
|
||||
; * NOTE: The function does *not* check if the mouse is currently inside the
|
||||
; * given margins. The proper way to use this function therefore is:
|
||||
; *
|
||||
; * - Hide the mouse
|
||||
; * - Set the bounding box
|
||||
; * - Place the mouse at the desired position
|
||||
; * - Show the mouse again.
|
||||
; *
|
||||
; * NOTE2: When setting the box to something that is larger than the actual
|
||||
; * screen, the positioning of the mouse cursor can fail. If such margins
|
||||
; * are really what you want, you have to use your own cursor routines.
|
||||
; */
|
||||
;
|
||||
|
||||
.import incsp6
|
||||
|
||||
.include "mouse-kernel.inc"
|
||||
|
||||
.proc _mouse_box
|
||||
|
||||
jsr mouse_box ; Call the driver
|
||||
jmp incsp6 ; Cleanup the stack
|
||||
|
||||
.endproc
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user