Working...
git-svn-id: svn://svn.cc65.org/cc65/trunk@2899 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
18a2904921
commit
703cde460f
1 changed files with 19 additions and 8 deletions
|
@ -52,10 +52,10 @@
|
||||||
; The driver header
|
; The driver header
|
||||||
|
|
||||||
.struct MOUSE_HDR
|
.struct MOUSE_HDR
|
||||||
ID .byte 3 ; Contains 0x6D, 0x6F, 0x75 ("mou")
|
ID .byte 3 ; Contains 0x6D, 0x6F, 0x75 ("mou")
|
||||||
VERSION .byte 1 ; Interface version
|
VERSION .byte 1 ; Interface version
|
||||||
JUMPTAB .struct
|
JUMPTAB .struct
|
||||||
INSTALL .addr
|
INSTALL .addr
|
||||||
UNINSTALL .addr
|
UNINSTALL .addr
|
||||||
HIDE .addr
|
HIDE .addr
|
||||||
SHOW .addr
|
SHOW .addr
|
||||||
|
@ -65,8 +65,18 @@
|
||||||
POS .addr
|
POS .addr
|
||||||
INFO .addr
|
INFO .addr
|
||||||
IOCTL .addr
|
IOCTL .addr
|
||||||
IRQ .addr
|
IRQ .addr
|
||||||
.endstruct
|
.endstruct
|
||||||
|
XPOS .word ; Mouse X position
|
||||||
|
YPOS .word ; Mouse Y position
|
||||||
|
CALLBACKS .struct ; Jump instructions
|
||||||
|
.byte ; JMP opcode
|
||||||
|
CHIDE .addr ; Jump address
|
||||||
|
.byte
|
||||||
|
CSHOW .addr
|
||||||
|
.byte
|
||||||
|
CMOVE .addr
|
||||||
|
.endstruct
|
||||||
.endstruct
|
.endstruct
|
||||||
|
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
|
@ -97,7 +107,8 @@ MOUSE_BTN_RIGHT = $01
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
; Variables
|
; Variables
|
||||||
|
|
||||||
.global _mouse_drv ; Pointer to driver
|
.global _mouse_drv ; Pointer to driver
|
||||||
|
.global _mouse_hidden ; Counter, 0 = mouse is visible
|
||||||
|
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
; C callable functions
|
; C callable functions
|
||||||
|
@ -113,7 +124,7 @@ MOUSE_BTN_RIGHT = $01
|
||||||
.global _mouse_move
|
.global _mouse_move
|
||||||
.global _mouse_buttons
|
.global _mouse_buttons
|
||||||
.global _mouse_pos
|
.global _mouse_pos
|
||||||
.global _mouse_info
|
.global _mouse_info
|
||||||
.global _mouse_ioctl
|
.global _mouse_ioctl
|
||||||
|
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
|
@ -127,7 +138,7 @@ MOUSE_BTN_RIGHT = $01
|
||||||
.global mouse_move
|
.global mouse_move
|
||||||
.global mouse_buttons
|
.global mouse_buttons
|
||||||
.global mouse_pos
|
.global mouse_pos
|
||||||
.global mouse_info
|
.global mouse_info
|
||||||
.global mouse_ioctl
|
.global mouse_ioctl
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue