mirror of
https://github.com/cc65/cc65.git
synced 2026-04-21 09:17:52 +00:00
Some fine tuning of the mouse driver interface harmonization.
This commit is contained in:
@@ -26,8 +26,8 @@ visible:.res 1
|
||||
_mouse_def_callbacks:
|
||||
.addr hide
|
||||
.addr show
|
||||
.addr prep
|
||||
.addr draw
|
||||
.addr move
|
||||
.addr movex
|
||||
.addr movey
|
||||
|
||||
@@ -76,7 +76,7 @@ hide:
|
||||
; Fall through
|
||||
|
||||
; Prepare to move the mouse cursor.
|
||||
move:
|
||||
prep:
|
||||
jsr getcursor ; Cursor visible at current position?
|
||||
bne done ; No, we're done
|
||||
lda backup ; Get character at cursor position
|
||||
|
||||
@@ -57,8 +57,8 @@ status := $0778
|
||||
; Callback table, set by the kernel before INSTALL is called
|
||||
CHIDE: jmp $0000 ; Hide the cursor
|
||||
CSHOW: jmp $0000 ; Show the cursor
|
||||
CPREP: jmp $0000 ; Prepare to move the cursor
|
||||
CDRAW: jmp $0000 ; Draw the cursor
|
||||
CMOVE: jmp $0000 ; Prepare to move the cursor
|
||||
CMOVEX: jmp $0000 ; Move the cursor to X coord
|
||||
CMOVEY: jmp $0000 ; Move the cursor to Y coord
|
||||
|
||||
@@ -411,7 +411,7 @@ done: rts
|
||||
beq :+
|
||||
|
||||
; Remove the cursor at the old position
|
||||
update: jsr CMOVE
|
||||
update: jsr CPREP
|
||||
|
||||
; Get and set the new X position
|
||||
ldy slot
|
||||
|
||||
Reference in New Issue
Block a user