Correct CEC button up/down event

This commit is contained in:
Iwan Timmer 2015-06-30 13:03:16 +02:00
parent 2c73836a06
commit c10195f524

View File

@ -124,7 +124,7 @@ static int on_cec_keypress(void* userdata, const cec_keypress key) {
if (value != 0) {
short code = 0x80 << 8 | keyCodes[value];
LiSendKeyboardEvent(code, (key.duration > 0)?KEY_ACTION_DOWN:KEY_ACTION_UP, 0);
LiSendKeyboardEvent(code, (key.duration > 0)?KEY_ACTION_UP:KEY_ACTION_DOWN, 0);
}
}