From 6e4943c2fa7bebcd6682a7b589d680d08634db77 Mon Sep 17 00:00:00 2001 From: Reuben Dunnington Date: Fri, 29 Sep 2023 22:09:31 -0400 Subject: [PATCH] make scancode -> keycode conversion consistent with header definitions --- src/app/app.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/app.c b/src/app/app.c index a704722..030f02d 100644 --- a/src/app/app.c +++ b/src/app/app.c @@ -188,7 +188,7 @@ oc_key_code oc_scancode_to_keycode(oc_scan_code scanCode) return (oc_appData.keyMap[scanCode]); } -#define OC_DEFAULT_KEYMAP_ENTRY(sc, sv, ...) [(int) sc] = (oc_key_code)sc, +#define OC_DEFAULT_KEYMAP_ENTRY(sc, sv, kc, ...) [(int) sc] = OC_VA_NOPT(sv, ##__VA_ARGS__) __VA_ARGS__, oc_key_code oc_defaultKeyMap[OC_SCANCODE_COUNT] = { OC_KEY_TABLE(OC_DEFAULT_KEYMAP_ENTRY) -- 2.25.1