Explorar o código

InputLIRC : fix keyup detection.

Upstream changed the suffix for up events as per https://github.com/LibreELEC/LibreELEC.tv/pull/1281
LongChair %!s(int64=8) %!d(string=hai) anos
pai
achega
8764331207
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/input/InputLIRC.cpp

+ 1 - 1
src/input/InputLIRC.cpp

@@ -107,7 +107,7 @@ void InputLIRC::read(int handle)
       // it makes GUI unusable
       if ((repeatCount % 3) == 0)
       {
-        bool up = (command.endsWith("_UP") && (command != "KEY_UP"));
+        bool up = command.endsWith("_LIRCUP");
         emit receivedInput("LIRC", command, up ? InputBase::KeyUp : InputBase::KeyDown);
       }
     }