diff options
author | mid-kid <esteve.varela@gmail.com> | 2019-11-03 21:55:32 +0100 |
---|---|---|
committer | mid-kid <esteve.varela@gmail.com> | 2019-11-18 18:21:57 +0100 |
commit | 176257ea6f49597203887e610b03807901ba586e (patch) | |
tree | 970a48363659a91631e17ba40329bc83a7bfc0ac | |
parent | d00167d6b8f4c32a0dc72a82b82a192321106bbc (diff) |
Document WaitPressAorB_BlinkCursor a bit
This is one weird function I'll never understand the purpose of.
It could use a better name, but I have no clue what.
-rw-r--r-- | home/joypad.asm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/home/joypad.asm b/home/joypad.asm index 819c7f532..f562d0878 100644 --- a/home/joypad.asm +++ b/home/joypad.asm @@ -338,6 +338,12 @@ JoyTextDelay:: ret WaitPressAorB_BlinkCursor:: +; Show a blinking cursor in the lower right-hand +; corner of a textbox and wait until A or B is +; pressed. +; +; NOTE: The cursor has to be shown before calling +; this function or no cursor will be shown at all. ldh a, [hMapObjectIndexBuffer] push af ldh a, [hObjectStructIndexBuffer] @@ -373,6 +379,9 @@ SimpleWaitPressAorB:: ret PromptButton:: +; Show a blinking cursor in the lower right-hand +; corner of a textbox and wait until A or B is +; pressed, afterwards, play a sound. ld a, [wLinkMode] and a jr nz, .link |