int CecCommand(void *UNUSED(cbParam), const cec_command &command) { g_lastCommand = command.opcode; g_responseEvent.Signal(); return 0; }
int CecKeyPress(void *UNUSED(cbParam), const cec_keypress &key) { g_lastKey = key.keycode; g_keyEvent.Signal(); return 0; }