* [hhkb](keyboard/hhkb/) - [Happy Hacking Keyboard professional][GH_hhkb] | * [hhkb](keyboard/hhkb/) - [Happy Hacking Keyboard professional][GH_hhkb] | ||||
* [macway](keyboard/macway/) - [Compact keyboard mod][GH_macway] | * [macway](keyboard/macway/) - [Compact keyboard mod][GH_macway] | ||||
* [hbkb](keyboard/hbkb/) - [Happy Buckling sprint keyboard(IBM Model M mod)][GH_hbkb] | * [hbkb](keyboard/hbkb/) - [Happy Buckling sprint keyboard(IBM Model M mod)][GH_hbkb] | ||||
* [IIgs_Standard](keyboard/IIgs_Standard/) - Apple [IIGS] keyboard mod(by JeffreySung) | |||||
* [IIgs_Standard](keyboard/IIgs/) - Apple [IIGS] keyboard mod(by JeffreySung) | |||||
* [hid_liber](keyboard/hid_liber/) - [HID liberation controller][HID_liber](by alaricljs) | * [hid_liber](keyboard/hid_liber/) - [HID liberation controller][HID_liber](by alaricljs) | ||||
* [phantom](keyboard/phantom/) - [Phantom keyboard][PHANTOM] (by Tranquilite) | * [phantom](keyboard/phantom/) - [Phantom keyboard][PHANTOM] (by Tranquilite) | ||||
* [gh60](keyboard/gh60/) - [GH60 keyboard][GH60] | * [gh60](keyboard/gh60/) - [GH60 keyboard][GH60] |
return keycode_to_action(keycode); | return keycode_to_action(keycode); | ||||
} | } | ||||
} | } | ||||
__attribute__ ((weak)) | |||||
const prog_macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) { return MACRO_NONE; } | |||||
__attribute__ ((weak)) | |||||
void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) {} | |||||
#else | #else | ||||
/* | /* | ||||
* legacy keymap support | * legacy keymap support | ||||
return keycode_to_action(keycode); | return keycode_to_action(keycode); | ||||
} | } | ||||
} | } | ||||
/* not used for legacy keymap */ | |||||
void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) | |||||
{ | |||||
} | |||||
#endif | #endif | ||||
__attribute__ ((weak)) | |||||
const prog_macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) { return MACRO_NONE; } | |||||
__attribute__ ((weak)) | |||||
void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) {} | |||||
/* translates keycode to action */ | /* translates keycode to action */ | ||||
static action_t keycode_to_action(uint8_t keycode) | static action_t keycode_to_action(uint8_t keycode) |
} else { | } else { | ||||
debug("kbuf: full\n"); | debug("kbuf: full\n"); | ||||
} | } | ||||
// NOTE: send key strokes of Macro | |||||
usbPoll(); | |||||
vusb_transfer_keyboard(); | |||||
} | } | ||||