mirror of
https://github.com/a2-4am/pitch-dark.git
synced 2024-09-27 19:57:56 +00:00
fix bug in SimulateClick that broke scrolling description box with arrow keys
This commit is contained in:
parent
c89442b9e9
commit
4af523afd7
@ -44,6 +44,8 @@ kLastPlayed
|
|||||||
|
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
; LoadGlobalPreferences
|
; LoadGlobalPreferences
|
||||||
|
; load global options and state (including current game) from file and populate
|
||||||
|
; global prefs store
|
||||||
;
|
;
|
||||||
; in: current ProDOS prefix is the same as the PITCH.DARK.CONF file
|
; in: current ProDOS prefix is the same as the PITCH.DARK.CONF file
|
||||||
; out: all registers and flags clobbered
|
; out: all registers and flags clobbered
|
||||||
@ -67,6 +69,9 @@ LoadGlobalPreferences
|
|||||||
|
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
; SaveGlobalPreferences
|
; SaveGlobalPreferences
|
||||||
|
; save global options and state to file
|
||||||
|
; note: this function is inefficient because I want the preferences file to
|
||||||
|
; look a certain way at all times
|
||||||
;
|
;
|
||||||
; in: current ProDOS prefix is the same as the PITCH.DARK.CONF file
|
; in: current ProDOS prefix is the same as the PITCH.DARK.CONF file
|
||||||
; out: all registers and flags clobbered
|
; out: all registers and flags clobbered
|
||||||
|
@ -139,7 +139,7 @@ PrintAt
|
|||||||
|
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
; SimulateClick
|
; SimulateClick
|
||||||
; select, focus, activate, and unfocus a WeeGUI view
|
; focus, activate, and unfocus a WeeGUI view
|
||||||
;
|
;
|
||||||
; in: WeeGUI initialized
|
; in: WeeGUI initialized
|
||||||
; A contains WeeGUI view ID
|
; A contains WeeGUI view ID
|
||||||
@ -147,8 +147,6 @@ PrintAt
|
|||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
!zone {
|
!zone {
|
||||||
SimulateClick
|
SimulateClick
|
||||||
ldx #WGSelectView
|
|
||||||
jsr WeeGUI
|
|
||||||
ldx #WGViewFocus
|
ldx #WGViewFocus
|
||||||
jsr WeeGUI
|
jsr WeeGUI
|
||||||
ldx #WGViewFocusAction
|
ldx #WGViewFocusAction
|
||||||
|
@ -89,6 +89,8 @@ HandleKey
|
|||||||
tax
|
tax
|
||||||
ldy gViewInUse,x
|
ldy gViewInUse,x
|
||||||
beq .notFound
|
beq .notFound
|
||||||
|
ldx #WGSelectView
|
||||||
|
jsr WeeGUI
|
||||||
.focusAndDoAction
|
.focusAndDoAction
|
||||||
jmp SimulateClick
|
jmp SimulateClick
|
||||||
|
|
||||||
@ -211,4 +213,4 @@ callback_boxart = DisplayArtwork
|
|||||||
callback_options = OptionsDialog
|
callback_options = OptionsDialog
|
||||||
callback_clues = LaunchInterpreterWithHints
|
callback_clues = LaunchInterpreterWithHints
|
||||||
callback_play = LaunchInterpreterWithGame
|
callback_play = LaunchInterpreterWithGame
|
||||||
callback_resume = LaunchInterpreterWithGame
|
callback_resume = ResumeDialog
|
||||||
|
@ -127,6 +127,8 @@ HandleOptionsKey
|
|||||||
jmp SoftBell
|
jmp SoftBell
|
||||||
.foundKey
|
.foundKey
|
||||||
lda .keys+1,x
|
lda .keys+1,x
|
||||||
|
ldx #WGSelectView
|
||||||
|
jsr WeeGUI
|
||||||
jmp SimulateClick
|
jmp SimulateClick
|
||||||
|
|
||||||
callback_options_ok
|
callback_options_ok
|
||||||
|
Loading…
Reference in New Issue
Block a user