aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorSylvain CECCHETTO <cecchetto.sylvain@me.com>2019-04-28 23:47:02 +0200
committerBrent Murphy <bmurphy@bcmcs.net>2020-01-08 19:08:11 +1000
commit5b152cd2f32568e87ee8ba0b3e7f9870028dcca2 (patch)
tree28c0701124a63b6605d64df1a69a379e9eb0d06c /system
parent4258a6d587372965512a221b725ec127161fa331 (diff)
[tvOS] Initial Platform Commit for Apple TVOS
Initial commit for TVOS platform.
Diffstat (limited to 'system')
-rw-r--r--system/keymaps/customcontroller.SiriRemote.xml145
-rw-r--r--system/settings/darwin_tvos.xml140
2 files changed, 285 insertions, 0 deletions
diff --git a/system/keymaps/customcontroller.SiriRemote.xml b/system/keymaps/customcontroller.SiriRemote.xml
new file mode 100644
index 0000000000..ab0ed63990
--- /dev/null
+++ b/system/keymaps/customcontroller.SiriRemote.xml
@@ -0,0 +1,145 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- This file contains the mapping of keys (gamepad,remote and keyboard) to actions within XBMC -->
+<!-- The <global> section is a fall through - they will only be used if the button is not -->
+<!-- used in the current window's section. Note that there is only handling -->
+<!-- for a single action per button at this stage. -->
+<!-- For joystick/gamepad configuration under linux/win32, see below as it differs from xbox -->
+<!-- gamepads. -->
+
+<!-- The format is: -->
+<!-- <device> -->
+<!-- <button id=""#>xbmc action</button>
+<!-- </device> -->
+
+<!-- To map keys from other remotes using the RCA protocol, you may add <customcontroller name="SiriRemote"> blocks -->
+<!-- In this case, the tags used are <button id=""#> where # is the original button code (OBC) of the key -->
+<!-- You set it up by adding a <customcontroller name="SiriRemote"> block to the window or <global> section: -->
+<!-- <customcontroller name="SiriRemote"> -->
+<!-- <button id="45">Stop</button>
+<!-- </customcontroller> -->
+
+<!-- Note that the action can be a built-in function. -->
+<!-- eg <button id="6">ActivateWindow(Favourites)</button>
+<!-- would bring up Favourites when the button with the id of 6 is press. In this case, "Menu" -->
+
+<!-- -->
+<!-- Button Ids: -->
+<!-- 'id' is the button ID used by SDL. The key ids recognized from your remote appears -->
+<!-- in /var/log/syslog on the ATV2 for each button pressed and when debug mode is enabled -->
+<!-- Use your log to discover and map custom buttons to actions. -->
+
+<keymap>
+ <global>
+ <customcontroller name="SiriRemote">
+ <!-- up --> <button id="1">Up</button>
+ <!-- down --> <button id="2">Down</button>
+ <!-- left --> <button id="3">Left</button>
+ <!-- right --> <button id="4">Right</button>
+ <!-- center --> <button id="5">Select</button>
+ <!-- menu --> <button id="6">Back</button>
+ <!-- hold center--> <button id="7">ContextMenu</button>
+ <!-- swipe up --> <button id="8">Up</button>
+ <!-- swipe down --> <button id="9">Down</button>
+ <!-- swipe left --> <button id="10">Left</button>
+ <!-- swipe right --> <button id="11">Right</button>
+ <!-- play/pause --> <button id="12">PlayPause</button>
+ <!-- ir play --> <button id="13">Play</button>
+ <!-- ir pause --> <button id="14">Pause</button>
+ <!-- ir stop --> <button id="15">Stop</button>
+ <!-- ir next track --> <button id="16">SkipNext</button>
+ <!-- ir prev track --> <button id="17">SkipPrevious</button>
+ <!-- ir fast forward --> <button id="18">FastForward</button>
+ <!-- ir rewind --> <button id="19">Rewind</button>
+ </customcontroller>
+ </global>
+ <Home>
+ <customcontroller name="SiriRemote">
+ <button id="6">ActivateWindow(Favourites)</button>
+ </customcontroller>
+ </Home>
+ <FullscreenVideo>
+ <customcontroller name="SiriRemote">
+ <button id="1">VolumeUp</button>
+ <button id="2">VolumeDown</button>
+ <button id="3">StepBack</button>
+ <button id="4">StepForward</button>
+ <button id="5">Pause</button>
+ <button id="6">Stop</button>
+ <button id="7">OSD</button>
+ <button id="8">noop</button>
+ <button id="9">noop</button>
+ <button id="10">noop</button>
+ <button id="11">noop</button>
+ </customcontroller>
+ </FullscreenVideo>
+ <FullscreenLiveTV>
+ <customcontroller name="SiriRemote">
+ <button id="3">ChannelDown</button>
+ <button id="4">ChannelUp</button>
+ <button id="8">noop</button>
+ <button id="9">noop</button>
+ <button id="10">noop</button>
+ <button id="11">noop</button>
+ </customcontroller>
+ </FullscreenLiveTV>
+ <FullscreenRadio>
+ <customcontroller name="SiriRemote">
+ <button id="3">ChannelDown</button>
+ <button id="4">ChannelUp</button>
+ </customcontroller>
+ </FullscreenRadio>
+ <Visualisation>
+ <customcontroller name="SiriRemote">
+ <button id="1">VolumeUp</button>
+ <button id="2">VolumeDown</button>
+ <button id="3">SkipPrevious</button>
+ <button id="4">SkipNext</button>
+ <button id="5">Pause</button>
+ <button id="6">Fullscreen</button>
+ <button id="7">OSD</button>
+ </customcontroller>
+ </Visualisation>
+ <SlideShow>
+ <customcontroller name="SiriRemote">
+ <button id="1">ZoomIn</button>
+ <button id="2">ZoomOut</button>
+ <button id="3">PreviousPicture</button>
+ <button id="4">NextPicture</button>
+ <button id="6">Stop</button>
+ <button id="7">Info</button>
+ </customcontroller>
+ </SlideShow>
+ <ScreenCalibration>
+ <customcontroller name="SiriRemote">
+ <button id="5">NextCalibration</button>
+ </customcontroller>
+ </ScreenCalibration>
+ <VideoOSD>
+ <customcontroller name="SiriRemote">
+ <button id="7">Back</button>
+ </customcontroller>
+ </VideoOSD>
+ <VideoMenu>
+ <customcontroller name="SiriRemote">
+ <button id="5">Select</button>
+ <button id="6">Stop</button>
+ <button id="7">OSD</button>
+ </customcontroller>
+ </VideoMenu>
+ <MyVideoLibrary>
+ <customcontroller name="SiriRemote">
+ <button id="7">Info</button>
+ </customcontroller>
+ </MyVideoLibrary>
+ <MyVideoFiles>
+ <customcontroller name="SiriRemote">
+ <button id="7">Info</button>
+ </customcontroller>
+ </MyVideoFiles>
+ <PictureInfo>
+ <customcontroller name="SiriRemote">
+ <button id="3">Left</button>
+ <button id="4">Right</button>
+ </customcontroller>
+ </PictureInfo>
+</keymap>
diff --git a/system/settings/darwin_tvos.xml b/system/settings/darwin_tvos.xml
new file mode 100644
index 0000000000..89b50d78c9
--- /dev/null
+++ b/system/settings/darwin_tvos.xml
@@ -0,0 +1,140 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<settings>
+ <section id="interface">
+ <category id="screensaver">
+ <visible>false</visible>
+ <group id="1">
+ <setting id="screensaver.mode">
+ <default></default>
+ </setting>
+ <setting id="screensaver.usemusicvisinstead">
+ <default>false</default>
+ </setting>
+ <setting id="screensaver.usedimonpause">
+ <default>false</default>
+ </setting>
+ </group>
+ </category>
+ <category id="masterlock">
+ <visible>false</visible>
+ </category>
+ </section>
+ <section id="system">
+ <category id="input">
+ <group id="1">
+ <setting id="input.peripherals">
+ <visible>false</visible>
+ </setting>
+ </group>
+ <group id="2">
+ <setting id="input.enablemouse">
+ <default>false</default>
+ <visible>false</visible>
+ </setting>
+ <setting id="input.controllerconfig">
+ <visible>false</visible>
+ </setting>
+ </group>
+ <group id="3">
+ <setting id="input.appleremotemode">
+ <visible>false</visible>
+ </setting>
+ <setting id="input.appleremotesequencetime">
+ <visible>false</visible>
+ </setting>
+ <setting id="input.applesiri" type="boolean" label="24163" help="24153">
+ <level>1</level>
+ <default>false</default>
+ <control type="toggle" />
+ </setting>
+ <setting id="input.applesiritimeoutenabled" type="boolean" label="24160" help="24161">
+ <level>1</level>
+ <default>true</default>
+ <control type="toggle" />
+ </setting>
+ <setting id="input.applesiritimeout" type="integer" label="24154" help="24155">
+ <level>1</level>
+ <default>60</default>
+ <constraints>
+ <options>
+ <option label="24156">30</option>
+ <option label="24157">60</option>
+ <option label="24158">90</option>
+ <option label="24159">120</option>
+ </options>
+ </constraints>
+ <control type="list" format="integer" />
+ <dependencies>
+ <dependency type="enable" setting="input.applesiritimeoutenabled">true</dependency>
+ </dependencies>
+ </setting>
+ <setting id="input.appleusekodikeyboard" type="boolean" label="24162">
+ <level>1</level>
+ <default>false</default>
+ <control type="toggle" />
+ </setting>
+ </group>
+ </category>
+ </section>
+ <section id="player">
+ <category id="videoplayer">
+ <group id="3">
+ <setting id="videoplayer.hqscalers">
+ <visible>false</visible>
+ </setting>
+ </group>
+ </category>
+ <category id="discs">
+ <group id="3" label="620">
+ <visible>false</visible>
+ </group>
+ </category>
+ </section>
+ <section id="services" label="14036" help="36319">
+ <category id="airplay" label="1273" help="36602">
+ <visible>false</visible>
+ </category>
+ </section>
+ <section id="system">
+ <category id="display">
+ <group id="1">
+ <setting id="videoscreen.fakefullscreen">
+ <visible>false</visible>
+ </setting>
+ <setting id="videoscreen.blankdisplays">
+ <visible>false</visible>
+ </setting>
+ <setting id="videoscreen.resolution" type="integer" parent="videoscreen.screen" label="169" help="36352">
+ <visible>false</visible>
+ </setting>
+ <setting id="videoscreen.vsync" type="integer" label="13105" help="36356">
+ <default>2</default> <!-- VSYNC_ALWAYS -->
+ <visible>false</visible>
+ </setting>
+ </group>
+ </category>
+ <category id="audio">
+ <group id="1">
+ <setting id="audiooutput.audiodevice" type="string">
+ <default>Default</default>
+ <visible>false</visible>
+ </setting>
+ </group>
+ <group id="3">
+ <setting id="audiooutput.passthroughdevice" type="string">
+ <default>Default</default>
+ <visible>false</visible>
+ </setting>
+ <setting id="audiooutput.supportdtshdcpudecoding" type="boolean">
+ <default>false</default>
+ <visible>false</visible>
+ </setting>
+ </group>
+ </category>
+ <category id="powermanagement">
+ <group id="1">
+ <visible>false</visible>
+ </group>
+ </category>
+ </section>
+</settings>