Merge pull request #1327 from Kwiboo/master-lirc-repeat

input: change input repeat config
This commit is contained in:
MilhouseVH 2017-02-18 23:30:43 +00:00 committed by GitHub
commit 6f6e49e306
11 changed files with 48 additions and 3 deletions

View File

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<advancedsettings>
<showexitbutton>false</showexitbutton>
<remotedelay>1</remotedelay>
<cputempcommand>cputemp</cputempcommand>
<gputempcommand>gputemp</gputempcommand>
<video>

View File

@ -0,0 +1,22 @@
From f907adcd658a00031f88f1c0de817672cb51b57c Mon Sep 17 00:00:00 2001
From: Jonas Karlman <jonas@kwiboo.se>
Date: Sun, 12 Feb 2017 16:31:29 +0100
Subject: [PATCH] [settings] change allowed remotedelay range to inlcude zero
---
xbmc/settings/AdvancedSettings.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/xbmc/settings/AdvancedSettings.cpp b/xbmc/settings/AdvancedSettings.cpp
index 1c87d8c..b817f94 100644
--- a/xbmc/settings/AdvancedSettings.cpp
+++ b/xbmc/settings/AdvancedSettings.cpp
@@ -1011,7 +1011,7 @@ void CAdvancedSettings::ParseSettingsFile(const std::string &file)
}
}
- XMLUtils::GetInt(pRootElement, "remotedelay", m_remoteDelay, 1, 20);
+ XMLUtils::GetInt(pRootElement, "remotedelay", m_remoteDelay, 0, 20);
XMLUtils::GetFloat(pRootElement, "controllerdeadzone", m_controllerDeadzone, 0.0f, 1.0f);
XMLUtils::GetUInt(pRootElement, "fanartres", m_fanartRes, 0, 1080);
XMLUtils::GetUInt(pRootElement, "imageres", m_imageRes, 0, 1080);

View File

@ -194,9 +194,6 @@ ENV{eventlircd_evmap}="osmc_rf.evmap"
LABEL="end-usb"
# Set default delays (1000ms for first repeat, to avoid multiple keypresses).
RUN+="/usr/bin/ir-keytable --delay=1000 --device=$devnode"
#-------------------------------------------------------------------------------
# Ask eventlircd to handle Bluetooth HID devices that show up as event devices
# and are known to be remote controls. For simplicity, the event map file names

View File

@ -0,0 +1,18 @@
ACTION=="add", SUBSYSTEM=="input", KERNEL=="event[0-9]*", GOTO="start"
GOTO="end"
LABEL="start"
# don't change eventlircd device settings
ATTRS{name}=="eventlircd", GOTO="end"
# don't change settings of rc remotes
SUBSYSTEMS=="rc", GOTO="end"
# set default repeat delay to 500ms like rc remotes
RUN+="/usr/bin/ir-keytable --delay=500 --device=$devnode"
# make lircd-uinput use same repeat period like keyboards in kodi
ATTRS{name}=="lircd-uinput", \
RUN+="/usr/bin/ir-keytable --period=80 --device=$devnode"
LABEL="end"

View File

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<advancedsettings>
<showexitbutton>false</showexitbutton>
<remotedelay>1</remotedelay>
<fanartres>720</fanartres>
<imageres>540</imageres>

View File

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<advancedsettings>
<showexitbutton>false</showexitbutton>
<remotedelay>1</remotedelay>
<fanartres>720</fanartres>
<imageres>540</imageres>

View File

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<advancedsettings>
<showexitbutton>false</showexitbutton>
<remotedelay>1</remotedelay>
<samba>
<clienttimeout>30</clienttimeout>

View File

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<advancedsettings>
<showexitbutton>false</showexitbutton>
<remotedelay>1</remotedelay>
<samba>
<clienttimeout>30</clienttimeout>

View File

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<advancedsettings>
<showexitbutton>false</showexitbutton>
<remotedelay>1</remotedelay>
<samba>
<clienttimeout>30</clienttimeout>

View File

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<advancedsettings>
<showexitbutton>false</showexitbutton>
<remotedelay>1</remotedelay>
<samba>
<clienttimeout>30</clienttimeout>

View File

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<advancedsettings>
<showexitbutton>false</showexitbutton>
<remotedelay>1</remotedelay>
<samba>
<clienttimeout>30</clienttimeout>
</samba>