mirror of
https://github.com/a2-4am/pitch-dark.git
synced 2024-09-25 21:54:37 +00:00
.
This commit is contained in:
parent
066413c267
commit
5aecacbd00
@ -63,14 +63,14 @@ MainScreen
|
|||||||
jsr WeeGUI
|
jsr WeeGUI
|
||||||
jsr PaintAllViews ; draw all UI elements
|
jsr PaintAllViews ; draw all UI elements
|
||||||
bit $C010 ; clear keyboard strobe
|
bit $C010 ; clear keyboard strobe
|
||||||
.runLoop
|
.mainRunLoop
|
||||||
ldx #WGPendingViewAction
|
ldx #WGPendingViewAction
|
||||||
jsr WeeGUI ; handle mouse movement and clicks
|
jsr WeeGUI ; handle mouse movement and clicks
|
||||||
lda $c000
|
lda $c000
|
||||||
bpl .runLoop
|
bpl .mainRunLoop
|
||||||
bit $c010
|
bit $c010
|
||||||
jsr HandleKey ; handle keypresses
|
jsr HandleKey ; handle keypresses
|
||||||
bra .runLoop
|
bra .mainRunLoop
|
||||||
|
|
||||||
ExitWeeGUI
|
ExitWeeGUI
|
||||||
ldx #WGDisableMouse ; disable mouse support before quitting
|
ldx #WGDisableMouse ; disable mouse support before quitting
|
||||||
|
@ -248,18 +248,18 @@ callback_boxart
|
|||||||
sta $C052
|
sta $C052
|
||||||
sta $C054
|
sta $C054
|
||||||
sta $C050
|
sta $C050
|
||||||
bit $C010
|
bit $C010 ; clear keyboard strobe
|
||||||
ldx #WGClearPendingClick
|
ldx #WGClearPendingClick ; clear WeeGUI mouse strobe
|
||||||
jsr WeeGUI
|
jsr WeeGUI
|
||||||
-
|
.boxArtRunLoop
|
||||||
ldx #WGPendingClick
|
ldx #WGPendingClick
|
||||||
jsr WeeGUI
|
jsr WeeGUI
|
||||||
cpx #$FF
|
cpx #$FF
|
||||||
bne +
|
bne + ; X != #$FF -> user clicked mouse
|
||||||
lda $C000
|
lda $C000
|
||||||
bpl -
|
bpl .boxArtRunLoop
|
||||||
+ bit $C010
|
+ bit $C010 ; clear keyboard strobe
|
||||||
ldx #WGClearPendingClick
|
ldx #WGClearPendingClick ; clear WeeGUI mouse strobe
|
||||||
jsr WeeGUI
|
jsr WeeGUI
|
||||||
sta $C051 ; back to text
|
sta $C051 ; back to text
|
||||||
rts
|
rts
|
||||||
|
Loading…
Reference in New Issue
Block a user