~nytpu/gba-keystroke-programming-demo

68af0134bc79ed8064e7bbfb920fd3098a8a39c8 — nytpu 5 months ago c4c59b2
rearrange key order to be more sensible
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);