#include #include "error.h" #include "hid/hid.h" #include "keyboard/keyboard.h" int main(int argc, const char *argv[]) { if (argc != 3) { fail("Usage: %s ", argv[0]); } char *ep; uint32_t usage = (uint32_t)strtoul(argv[1], &ep, 0); if (*ep != 0) { fail("Invalid usage: %x", usage); } uint32_t usage_page = (uint32_t)strtoul(argv[2], &ep, 0); if (*ep != 0) { fail("Invalid usage: %x", usage_page); } uint32_t key_value = read_next(usage, usage_page); struct qmk_unicode_type qmk_unicode_type = init_qmk_unicode(); type_keycode(&qmk_unicode_type, key_value); destroy_qmk_unicode(qmk_unicode_type); }