Forráskód Böngészése

InputLIRC : fix keyup detection.

Upstream changed the suffix for up events as per https://github.com/LibreELEC/LibreELEC.tv/pull/1281
LongChair 8 éve
szülő
commit
8764331207
1 módosított fájl, 1 hozzáadás és 1 törlés
  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);
       }
     }