aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authoruser <user@clank>2026-07-16 16:19:32 +0200
committeruser <user@clank>2026-07-16 16:19:32 +0200
commitef04a15c8dd3c18968b6fc134cdcf169069c385e (patch)
tree080d05e9bddf42e64cc7ce8e2fb1d6391d46e062 /src
parentsh: handle backspace in readline; prompt is now '#' (diff)
downloadgbos-ef04a15c8dd3c18968b6fc134cdcf169069c385e.tar.gz
gbos-ef04a15c8dd3c18968b6fc134cdcf169069c385e.tar.xz
gbos-ef04a15c8dd3c18968b6fc134cdcf169069c385e.zip
osk: bind START to Enter (CR)
START now returns $0A regardless of cursor position, so you can submit a command without navigating to the CR key. The CR key still works too.
Diffstat (limited to 'src')
-rw-r--r--src/osk.asm7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/osk.asm b/src/osk.asm
index 02700c6..c761aed 100644
--- a/src/osk.asm
+++ b/src/osk.asm
@@ -337,6 +337,13 @@ osk_handle::
bit 4, a
call nz, osk_right
ld a, [wPadNew]
+ bit 3, a ; START -> Enter (CR)
+ jr z, .chka
+ ld a, 10
+ scf
+ ret
+.chka
+ ld a, [wPadNew]
bit 0, a ; A: type the key as shown
jr z, .chkb
call osk_selected