Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyBindings - added keys KEY_MP3 as MP3 and KEY_VOD as VOD to rc2 #4135

Merged
merged 2 commits into from
Dec 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
104 changes: 52 additions & 52 deletions data/rc_models/octagon3.xml
Original file line number Diff line number Diff line change
@@ -1,65 +1,65 @@
<rcs>
<rc id="2">
<button name="POWER" pos="95,26" />
<button name="POWER" pos="93,27" />

<button name="1" pos="26,70" />
<button name="2" pos="60,70" />
<button name="3" pos="95,70" />
<button name="4" pos="26,98" />
<button name="5" pos="60,98" />
<button name="6" pos="95,98" />
<button name="7" pos="26,126" />
<button name="8" pos="60,126" />
<button name="9" pos="95,126" />
<button name="OPTION" pos="26,154" />
<button name="0" pos="60,154" />
<!--button name="IPTV" pos="95,154" /-->
<button name="1" pos="26,74" />
<button name="2" pos="60,72" />
<button name="3" pos="94,74" />
<button name="4" pos="26,101" />
<button name="5" pos="60,101" />
<button name="6" pos="94,101" />
<button name="7" pos="26,129" />
<button name="8" pos="60,129" />
<button name="9" pos="94,129" />
<button name="OPTION" pos="26,156" />
<button name="0" pos="60,156" />
<!--button name="IPTV" pos="95,156" /-->

<button name="MUTE" pos="26,176" />
<button name="AUDIO" pos="48,176" />
<button name="SUBTITLE" pos="72,176" />
<button name="TEXT" pos="96,176" />
<button name="MUTE" pos="26,178" />
<button name="AUDIO" pos="48,178" />
<button name="SUBTITLE" pos="72,178" />
<button name="TEXT" pos="96,178" />

<button name="RED" pos="24,196" />
<button name="GREEN" pos="48,196" />
<button name="YELLOW" pos="72,196" />
<button name="BLUE" pos="96,196" />
<button name="RED" pos="24,197" />
<button name="GREEN" pos="48,197" />
<button name="YELLOW" pos="72,197" />
<button name="BLUE" pos="96,197" />

<button name="INFO" pos="21,214" />
<button name="RECALL" pos="100,228" />
<button name="UP" pos="62,224" />
<button name="LEFT" pos="34,260" />
<button name="OK" pos="62,262" />
<button name="RIGHT" pos="86,260" />
<button name="DOWN" pos="61,282" />
<button name="MENU" pos="24,294" />
<button name="EXIT" pos="97,294" />
<button name="INFO" pos="20,221" />
<button name="RECALL" pos="100,221" />
<button name="UP" pos="60,226" />
<button name="LEFT" pos="35,251" />
<button name="OK" pos="60,251" />
<button name="RIGHT" pos="86,251" />
<button name="DOWN" pos="61,276" />
<button name="MENU" pos="25,286" />
<button name="EXIT" pos="97,286" />

<button name="VOL+" pos="26,312" />
<button name="BOUQUET+" pos="93,312" />
<button name="FAVORITES" pos="60,312" />
<button name="EPG" pos="60,350" />
<button name="VOL-" pos="26,334" />
<button name="BOUQUET-" pos="93,345" />
<button name="VOL+" pos="26,310" />
<button name="BOUQUET+" pos="92,310" />
<button name="FAVORITES" pos="60,314" />
<button name="EPG" pos="60,339" />
<button name="VOL-" pos="26,344" />
<button name="BOUQUET-" pos="92,344" />

<button name="REWIND" pos="24,372" />
<button name="FASTFORWARD" pos="48,372" />
<button name="ARROWLEFT" pos="72,372" />
<button name="ARROWRIGHT" pos="96,372" />
<button name="REWIND" pos="24,363" />
<button name="FASTFORWARD" pos="48,363" />
<button name="ARROWLEFT" pos="72,363" />
<button name="ARROWRIGHT" pos="96,363" />

<button name="SAT" pos="24,390" />
<button name="PLAYPAUSE" pos="48,390" />
<button name="STOP" pos="72,390" />
<button name="RECORD" pos="96,390" />
<button name="SAT" pos="24,383" />
<button name="PLAYPAUSE" pos="48,383" />
<button name="STOP" pos="72,383" />
<button name="RECORD" pos="96,383" />

<button name="VIDEO" pos="24,408" />
<!--button name="" pos="48,408" />
<button name="" pos="72,408" />
<button name="" pos="96,408" /-->
<button name="VIDEO" pos="24,402" />
<!--button name="" pos="48,402" /-->
<button name="MP3" pos="72,402" />
<button name="VOD" pos="96,402" />

<button name="TV" pos="24,426" />
<button name="VMODE" pos="48,426" />
<button name="VKEY" pos="72,426" />
<button name="SLEEP" pos="96,426" />
<button name="TV" pos="24,420" />
<button name="VMODE" pos="48,420" />
<button name="VKEY" pos="72,420" />
<button name="SLEEP" pos="96,420" />
</rc>
</rcs>
6 changes: 4 additions & 2 deletions lib/python/Tools/KeyBindings.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,9 @@
# Discrete power codes
KEYIDS["KEY_POWER2"]: ("POWER2",),
KEYIDS["KEY_SUSPEND"]: ("SUSPEND",),
KEYIDS["KEY_WAKEUP"]: ("WAKEUP",)
KEYIDS["KEY_WAKEUP"]: ("WAKEUP",),
KEYIDS["KEY_MP3"]: ("MP3",),
KEYIDS["KEY_VOD"]: ("VOD",)
}, { # id=3 - XP1000.
# The xp1000/rcpositions file defines PLAY and PAUSE
# at the same location where it should just define
Expand Down Expand Up @@ -476,4 +478,4 @@ def removeKeyBindings(domain):


def getFpAndKbdKeys(): # used by HelpMenuList
return {k for i in keyDescriptions for k, v in i.items() if len(v) > 1 and v[1] in ("fp", "kbd")}
return {k for i in keyDescriptions for k, v in i.items() if len(v) > 1 and v[1] in ("fp", "kbd")}