make scancode -> keycode conversion consistent with header definitions

This commit is contained in:
Reuben Dunnington 2023-09-29 22:09:31 -04:00
parent 90dd12a69f
commit 6e4943c2fa
Signed by: rdunnington
GPG Key ID: 3D57C8938EA08E90
1 changed files with 1 additions and 1 deletions

View File

@ -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)