Преглед на файлове

InputLIRC : fix keyup detection.

Upstream changed the suffix for up events as per https://github.com/LibreELEC/LibreELEC.tv/pull/1281
LongChair преди 8 години
родител
ревизия
8764331207
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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);
       }
     }