static void xbmc_button_up (const char *button) { if (debug) printf("NEC send up [%s]\n", button); xbmc.SendButton(button, "R1", BTN_UP); }
static void xbmc_button_down (const char *button) { if (debug) printf("NEC send down [%s]\n", button); xbmc.SendButton(button, "R1", BTN_DOWN); }
static void xbmc_button (const char *button) { if (debug) printf("NEC send [%s]\n", button); xbmc.SendButton(button, "R1", BTN_DOWN | BTN_QUEUE | BTN_NO_REPEAT); }
static void xbmc_release_button () { msg("## send key released\n"); xbmc.SendButton(0x01, BTN_UP); }
static void xbmc_keyr (const char *key) { msg("## send repeat key (R1) '%s'\n", key); xbmc.SendButton(key, "R1", BTN_DOWN); }
static void xbmc_key (const char *key) { msg("## send key (R1) '%s'\n", key); xbmc.SendButton(key, "R1", BTN_NO_REPEAT); }