Enable output hook in main()

This commit is contained in:
Dave 2020-05-06 15:56:23 -05:00
parent 0727621c19
commit 346784bd6b

View File

@ -72,10 +72,9 @@ int main(void)
asdf_keycode_t code = asdf_next_code();
if (code != ASDF_INVALID_CODE) {
asdf_arch_send_code(code);
// void (*output_function)(asdf_keycode_t) =
// (void (*)(asdf_keycode_t)) asdf_hook_get(ASDF_HOOK_OUTPUT);
//(*output_function)(code);
void (*output_function)(asdf_keycode_t) =
(void (*)(asdf_keycode_t)) asdf_hook_get(ASDF_HOOK_OUTPUT);
(*output_function)(code);
}
asdf_keyscan();
}