From 68af0134bc79ed8064e7bbfb920fd3098a8a39c8 Mon Sep 17 00:00:00 2001 From: nytpu Date: Sat, 15 Jun 2024 14:43:39 -0600 Subject: [PATCH] rearrange key order to be more sensible --- src/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.c b/src/main.c index 9bf3b50..2e78493 100644 --- a/src/main.c +++ b/src/main.c @@ -101,13 +101,13 @@ main(void) while (1) { VBlankIntrWait(); key_poll(); - if (key_hit(KEY_B)) delLine(); - else if (key_held(KEY_L)) { + if (key_held(KEY_L)) { if (key_hit(KEY_UP) && lineSelected > 0) lineSelected--; else if (key_hit(KEY_DOWN) && lineSelected < linesLen-2 && lines[lineSelected+1] != END) { lineSelected++; } - } else if (key_hit(KEY_A)) insertLine(NOP); + } else if (key_hit(KEY_B)) delLine(); + else if (key_hit(KEY_A)) insertLine(NOP); else if (key_hit(KEY_UP)) insertLine(UP_ARROW); else if (key_hit(KEY_DOWN)) insertLine(DOWN_ARROW); else if (key_hit(KEY_LEFT)) insertLine(LEFT_ARROW); -- 2.45.2