1 files changed, 3 insertions(+), 3 deletions(-)
M src/main.c
M src/main.c => src/main.c +3 -3
@@ 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);