More mouse stuff
git-svn-id: svn://svn.cc65.org/cc65/trunk@2856 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
23
libsrc/mouse/mouse_info.s
Normal file
23
libsrc/mouse/mouse_info.s
Normal file
@@ -0,0 +1,23 @@
|
||||
;
|
||||
; Ullrich von Bassewitz, 2003-12-30
|
||||
;
|
||||
; void __fastcall__ mouse_info (struct mouse_info* info);
|
||||
; /* Return the state of the mouse buttons and the position of the mouse */
|
||||
;
|
||||
|
||||
.import ptr1: zp
|
||||
|
||||
.include "mouse-kernel.inc"
|
||||
|
||||
.proc _mouse_info
|
||||
|
||||
sta ptr1
|
||||
stx ptr1+1 ; Store info into ptr1
|
||||
jmp mouse_info ; Call the driver
|
||||
|
||||
.endproc
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user