Remove sprite param to mouse_init
git-svn-id: svn://svn.cc65.org/cc65/trunk@893 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -82,12 +82,17 @@ struct mouse_info {
|
|||||||
|
|
||||||
|
|
||||||
unsigned char __fastcall__ mouse_init (unsigned char port,
|
unsigned char __fastcall__ mouse_init (unsigned char port,
|
||||||
unsigned char sprite,
|
|
||||||
unsigned char type);
|
unsigned char type);
|
||||||
/* Setup the mouse interrupt handler. If the sprite value is != zero, the
|
/* Setup the mouse interrupt handler. The mouse routines will use a predefined
|
||||||
* mouse routines will manage the sprite with this number. That means, it
|
* system resource for the mouse cursor:
|
||||||
* is moved if the mouse is moved (provided that the mouse cursor is visible),
|
* C64: Sprite #0
|
||||||
* and switched on and off in the show and hide functions.
|
* C128: Sprite #0
|
||||||
|
* GEOS: Sprite #0
|
||||||
|
* Atari: PM #0
|
||||||
|
* However, the mouse routines will not initialize this cursor or set a
|
||||||
|
* specific shape - this is platform dependent and up to the user program.
|
||||||
|
* The mouse cursor is moved if the mouse is moved (provided that the mouse
|
||||||
|
* cursor is visible), and switched on and off in the show and hide functions.
|
||||||
* The port parameter gives the joystick port used for the mouse and is only
|
* The port parameter gives the joystick port used for the mouse and is only
|
||||||
* needed to read the mouse button state.
|
* needed to read the mouse button state.
|
||||||
* The type parameter is needed on some systems to determine the type of
|
* The type parameter is needed on some systems to determine the type of
|
||||||
@@ -154,6 +159,9 @@ void __fastcall__ mouse_info (struct mouse_info* info);
|
|||||||
/* Return the state of the mouse buttons and the position of the mouse */
|
/* Return the state of the mouse buttons and the position of the mouse */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* End of mouse.h */
|
/* End of mouse.h */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -56,11 +56,10 @@ initmouse:
|
|||||||
|
|
||||||
;--------------------------------------------------------------------
|
;--------------------------------------------------------------------
|
||||||
; Initialize mouse routines
|
; Initialize mouse routines
|
||||||
; void __fastcall__ mouse_init (unsigned char port, unsigned char sprite, unsigned char type);
|
; void __fastcall__ mouse_init (unsigned char port, unsigned char type);
|
||||||
|
|
||||||
_mouse_init:
|
_mouse_init:
|
||||||
pha ; remember mouse type
|
pha ; remember mouse type
|
||||||
jsr popa ; ignore sprite / pm for now
|
|
||||||
jsr popa
|
jsr popa
|
||||||
sta port_nr
|
sta port_nr
|
||||||
pla ; get mouse type again
|
pla ; get mouse type again
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
.export _mouse_pos, _mouse_info
|
.export _mouse_pos, _mouse_info
|
||||||
.export _mouse_move, _mouse_buttons
|
.export _mouse_move, _mouse_buttons
|
||||||
|
|
||||||
.import popax, popsreg, addysp1
|
.import popa, popsreg, addysp1
|
||||||
.importzp sp, sreg, ptr1
|
.importzp sp, sreg, ptr1
|
||||||
|
|
||||||
.include "../inc/const.inc"
|
.include "../inc/const.inc"
|
||||||
@@ -25,12 +25,11 @@
|
|||||||
; --------------------------------------------------------------------------
|
; --------------------------------------------------------------------------
|
||||||
;
|
;
|
||||||
; unsigned char __fastcall__ mouse_init (unsigned char port,
|
; unsigned char __fastcall__ mouse_init (unsigned char port,
|
||||||
; unsigned char sprite,
|
|
||||||
; unsigned char type);
|
; unsigned char type);
|
||||||
;
|
;
|
||||||
|
|
||||||
_mouse_init:
|
_mouse_init:
|
||||||
jsr popax ; ignore all parameters
|
jsr popa ; ignore all parameters
|
||||||
|
|
||||||
jsr StartMouseMode
|
jsr StartMouseMode
|
||||||
jsr MouseOff
|
jsr MouseOff
|
||||||
|
|||||||
Reference in New Issue
Block a user