Пример #1
0
static void xbmc_button_up (const char *button)
{
  if (debug) printf("NEC send up [%s]\n", button);
  xbmc.SendButton(button, "R1", BTN_UP);
}
Пример #2
0
static void xbmc_button_down (const char *button)
{
  if (debug) printf("NEC send down [%s]\n", button);
  xbmc.SendButton(button, "R1", BTN_DOWN);
}
Пример #3
0
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);
}
Пример #4
0
static void xbmc_release_button ()
{
  msg("## send key released\n");
  xbmc.SendButton(0x01, BTN_UP);
}
Пример #5
0
static void xbmc_keyr (const char *key)
{
  msg("## send repeat key (R1) '%s'\n", key);
  xbmc.SendButton(key, "R1", BTN_DOWN);
}
Пример #6
0
static void xbmc_key (const char *key)
{
  msg("## send key (R1) '%s'\n", key);
  xbmc.SendButton(key, "R1", BTN_NO_REPEAT);
}