From 6d02a2a3ce46d66f1b1bbaedb28e1f900fe88e6b Mon Sep 17 00:00:00 2001 From: zeim839 Date: Wed, 20 Nov 2024 11:02:07 -0500 Subject: [PATCH] add joypad keyboard mapping instructions --- src/main.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index d1910ba..4856452 100644 --- a/src/main.c +++ b/src/main.c @@ -57,7 +57,15 @@ int help(int argc, char** argv) if (!strcmp(argv[1], "run")) { printf("usage: %s run [NES ROM File]\n\n", PACKAGE_NAME); - printf("Runs the specified NES ROM file. Only iNES file format is currently accepted.\n"); + printf("Runs the specified NES ROM file. Only iNES file format is currently accepted.\n\n"); + printf("Keyboard map:\n\n"); + printf("\tARROW KEYS:\tUP/DOWN/RIGHT/LEFT\n"); + printf("\tRETURN:\t\tSTART\n"); + printf("\tRSHIFT:\t\tSELECT\n"); + printf("\tH:\t\tTURBO A\n"); + printf("\tJ:\t\tBUTTON A\n"); + printf("\tK:\t\tBUTTON B\n"); + printf("\tL:\t\tTURBO B\n\n"); exit(EXIT_SUCCESS); }