improving touchscreen support

This commit is contained in:
theDeadMan 2020-04-02 18:42:40 +01:00
parent ab7d3eb67f
commit 3d57fc1121
46 changed files with 140 additions and 19 deletions

View File

@ -340,6 +340,8 @@
</control> </control>
</control> </control>
</control> </control>
<!--touchscreen controls-->
<include>touchscreenControls</include>
<!--debugging--> <!--debugging-->
<include>DebugGrid</include> <include>DebugGrid</include>
<control type="label"> <control type="label">

View File

@ -285,6 +285,8 @@
<description>Launch addon</description> <description>Launch addon</description>
</control> </control>
</control> </control>
<!--touchscreen controls-->
<include>touchscreenControls</include>
<!--debugging--> <!--debugging-->
<include>DebugGrid</include> <include>DebugGrid</include>
<control type="label"> <control type="label">

View File

@ -220,6 +220,8 @@
</control> </control>
</control> </control>
</control> </control>
<!--touchscreen controls-->
<include>touchscreenControls</include>
<!--debugging--> <!--debugging-->
<include>DebugGrid</include> <include>DebugGrid</include>
<control type="label"> <control type="label">

View File

@ -105,6 +105,8 @@
</content> </content>
</control> </control>
</control> </control>
<!--touchscreen controls-->
<include>touchscreenControls</include>
<!--debugging--> <!--debugging-->
<include>DebugGrid</include> <include>DebugGrid</include>
<control type="label"> <control type="label">

View File

@ -54,6 +54,8 @@
<width>12-col</width> <width>12-col</width>
</control> </control>
</control> </control>
<!--touchscreen controls-->
<include>touchscreenControls</include>
<!--debugging--> <!--debugging-->
<include>DebugGrid</include> <include>DebugGrid</include>
<control type="label"> <control type="label">

View File

@ -109,6 +109,8 @@
</focusedlayout> </focusedlayout>
</control> </control>
</control> </control>
<!--touchscreen controls-->
<include>touchscreenControls</include>
<!--debugging--> <!--debugging-->
<include>DebugGrid</include> <include>DebugGrid</include>
<control type="label"> <control type="label">

View File

@ -225,6 +225,8 @@
<description>Help button</description> <description>Help button</description>
</control> </control>
</control> </control>
<!--touchscreen controls-->
<include>touchscreenControls</include>
<!--debugging--> <!--debugging-->
<include>DebugGrid</include> <include>DebugGrid</include>
<control type="label"> <control type="label">

View File

@ -1080,6 +1080,8 @@
</control> </control>
</control> </control>
</control> </control>
<!--touchscreen controls-->
<include>touchscreenControls</include>
<!--debugging--> <!--debugging-->
<include>DebugGrid</include> <include>DebugGrid</include>
<control type="label"> <control type="label">

View File

@ -343,6 +343,8 @@
<description>Cancel Button</description> <description>Cancel Button</description>
</control> </control>
</control> </control>
<!--touchscreen controls-->
<include>touchscreenControls</include>
<!--debugging--> <!--debugging-->
<include>DebugGrid</include> <include>DebugGrid</include>
<control type="label"> <control type="label">

View File

@ -765,6 +765,8 @@
<label>20413</label> <label>20413</label>
</control> </control>
</control> </control>
<!--touchscreen controls-->
<include>touchscreenControls</include>
<!--debugging--> <!--debugging-->
<include>DebugGrid</include> <include>DebugGrid</include>
<control type="label"> <control type="label">

View File

@ -290,6 +290,8 @@
</control> </control>
</control> </control>
</control> </control>
<!--touchscreen controls-->
<include>touchscreenControls</include>
<!--debugging--> <!--debugging-->
<include>DebugGrid</include> <include>DebugGrid</include>
<control type="label"> <control type="label">

View File

@ -243,6 +243,8 @@
<label>19687</label> <label>19687</label>
</control> </control>
</control> </control>
<!--touchscreen controls-->
<include>touchscreenControls</include>
<!--debugging--> <!--debugging-->
<include>DebugGrid</include> <include>DebugGrid</include>
<control type="label"> <control type="label">

View File

@ -48,6 +48,8 @@
</focusedlayout> </focusedlayout>
</control> </control>
</control> </control>
<!--touchscreen controls-->
<include>touchscreenControls</include>
<!--debugging--> <!--debugging-->
<include>DebugGrid</include> <include>DebugGrid</include>
<control type="label"> <control type="label">

View File

@ -331,9 +331,10 @@
<label>186</label> <label>186</label>
</control> </control>
</control> </control>
</control> </control>
</control> </control>
<!--touchscreen controls-->
<include>touchscreenControls</include>
<!--debugging--> <!--debugging-->
<include>DebugGrid</include> <include>DebugGrid</include>
<control type="label"> <control type="label">

View File

@ -256,6 +256,8 @@
</control> </control>
</control> </control>
</control> </control>
<!--touchscreen controls-->
<include>touchscreenControls</include>
<!--debugging--> <!--debugging-->
<include>DebugGrid</include> <include>DebugGrid</include>
<control type="label"> <control type="label">

View File

@ -46,6 +46,8 @@
<font>textbox</font> <font>textbox</font>
</control> </control>
</control> </control>
<!--touchscreen controls-->
<include>touchscreenControls</include>
<!--debugging--> <!--debugging-->
<include>DebugGrid</include> <include>DebugGrid</include>
<control type="label"> <control type="label">

View File

@ -519,6 +519,8 @@
<description>Trailer</description> <description>Trailer</description>
</control> </control>
</control> </control>
<!--touchscreen controls-->
<include>touchscreenControls</include>
<!--debugging--> <!--debugging-->
<include>DebugGrid</include> <include>DebugGrid</include>
<control type="label"> <control type="label">

View File

@ -154,6 +154,8 @@
<visible>Control.IsVisible(570)</visible> <visible>Control.IsVisible(570)</visible>
</control> </control>
</control> </control>
<!--touchscreen controls-->
<include>touchscreenControls</include>
<!--debugging--> <!--debugging-->
<include>DebugGrid</include> <include>DebugGrid</include>
<control type="label"> <control type="label">

View File

@ -229,6 +229,8 @@
</control> </control>
</control> </control>
</control> </control>
<!--touchscreen controls-->
<include>touchscreenControls</include>
<!--debugging--> <!--debugging-->
<include>DebugGrid</include> <include>DebugGrid</include>
<control type="label"> <control type="label">

View File

@ -297,6 +297,25 @@
</control> </control>
</control> </control>
</include> </include>
<!--touchscreen controls-->
<include name="touchscreenControls">
<control type="group">
<visible>System.GetBool(input.enablemouse)</visible>
<!--universal back button-->
<control type="button" id="8542">
<description>black button</description>
<posx>0</posx>
<posy>0</posy>
<texturefocus colordiffuse="highlight">colors/white.png</texturefocus>
<focusedcolor>textActive</focusedcolor>
<height>fullscreenHeight</height>
<width>12</width>
<onclick>back</onclick>
</control>
</control>
</include>
<!--debugging--> <!--debugging-->
<include name="DialogID"> <include name="DialogID">
<posx>15</posx> <posx>15</posx>

View File

@ -36,6 +36,8 @@
<include>hubMenu</include> <include>hubMenu</include>
<!--mini window--> <!--mini window-->
<include>miniVideoPlayer</include> <include>miniVideoPlayer</include>
<!--touchscreen controls-->
<include>touchscreenControls</include>
<!--debug--> <!--debug-->
<include>DebugGrid</include> <include>DebugGrid</include>
<control type="label"> <control type="label">

View File

@ -64,6 +64,8 @@
<include>hubMenu</include> <include>hubMenu</include>
<!--loading indicator--> <!--loading indicator-->
<include>loadingIndicator</include> <include>loadingIndicator</include>
<!--touchscreen controls-->
<include>touchscreenControls</include>
<!--debugging--> <!--debugging-->
<include>DebugGrid</include> <include>DebugGrid</include>
<control type="label"> <control type="label">

View File

@ -48,6 +48,8 @@
<include>miniVideoPlayer</include> <include>miniVideoPlayer</include>
<!--hub menu--> <!--hub menu-->
<include>hubMenu</include> <include>hubMenu</include>
<!--touchscreen controls-->
<include>touchscreenControls</include>
<!--debugging--> <!--debugging-->
<include>DebugGrid</include> <include>DebugGrid</include>
<control type="label"> <control type="label">

View File

@ -166,6 +166,8 @@
<include>miniVideoPlayer</include> <include>miniVideoPlayer</include>
<!--hub menu--> <!--hub menu-->
<include>hubMenu</include> <include>hubMenu</include>
<!--touchscreen controls-->
<include>touchscreenControls</include>
<!--debugging--> <!--debugging-->
<include>DebugGrid</include> <include>DebugGrid</include>
<control type="label"> <control type="label">

View File

@ -167,6 +167,8 @@
<include>miniVideoPlayer</include> <include>miniVideoPlayer</include>
<!--hub menu--> <!--hub menu-->
<include>hubMenu</include> <include>hubMenu</include>
<!--touchscreen controls-->
<include>touchscreenControls</include>
<!--debugging--> <!--debugging-->
<include>DebugGrid</include> <include>DebugGrid</include>
<control type="label"> <control type="label">

View File

@ -249,6 +249,8 @@
</control> </control>
<!--hub menu--> <!--hub menu-->
<include>hubMenu</include> <include>hubMenu</include>
<!--touchscreen controls-->
<include>touchscreenControls</include>
<!--debugging--> <!--debugging-->
<include>DebugGrid</include> <include>DebugGrid</include>
<control type="label"> <control type="label">

View File

@ -37,6 +37,8 @@
<include>hubMenu</include> <include>hubMenu</include>
<!--mini window--> <!--mini window-->
<include>miniVideoPlayer</include> <include>miniVideoPlayer</include>
<!--touchscreen controls-->
<include>touchscreenControls</include>
<!--debug--> <!--debug-->
<include>DebugGrid</include> <include>DebugGrid</include>
<control type="label"> <control type="label">

View File

@ -51,6 +51,8 @@
<include>miniVideoPlayer</include> <include>miniVideoPlayer</include>
<!--hub menu--> <!--hub menu-->
<include>hubMenu</include> <include>hubMenu</include>
<!--touchscreen controls-->
<include>touchscreenControls</include>
<!--debugging--> <!--debugging-->
<include>DebugGrid</include> <include>DebugGrid</include>
<control type="label"> <control type="label">

View File

@ -138,6 +138,8 @@
<include>miniVideoPlayer</include> <include>miniVideoPlayer</include>
<!--hub menu--> <!--hub menu-->
<include>hubMenu</include> <include>hubMenu</include>
<!--touchscreen controls-->
<include>touchscreenControls</include>
<!--debugging--> <!--debugging-->
<include>DebugGrid</include> <include>DebugGrid</include>
<control type="label"> <control type="label">

View File

@ -63,6 +63,8 @@
<include>hubMenu</include> <include>hubMenu</include>
<!--loading indicator--> <!--loading indicator-->
<include>loadingIndicator</include> <include>loadingIndicator</include>
<!--touchscreen controls-->
<include>touchscreenControls</include>
<!--debugging--> <!--debugging-->
<include>DebugGrid</include> <include>DebugGrid</include>
<control type="label"> <control type="label">

View File

@ -207,6 +207,8 @@
<onright>Weather.LocationNext</onright> <onright>Weather.LocationNext</onright>
<onleft>Weather.LocationPrevious</onleft> <onleft>Weather.LocationPrevious</onleft>
</control> </control>
<!--touchscreen controls-->
<include>touchscreenControls</include>
<!--debugging--> <!--debugging-->
<include>DebugGrid</include> <include>DebugGrid</include>
<control type="label"> <control type="label">

View File

@ -8,24 +8,28 @@
</coordinates> </coordinates>
<controls> <controls>
<control type="image" id="1"> <control type="image" id="1">
<visible>!Skin.HasSetting(hideMouse)</visible>
<description>Pointer</description> <description>Pointer</description>
<width>45</width> <width>45</width>
<height>45</height> <height>45</height>
<texture>UIControls/PointerNF.png</texture> <texture>UIControls/PointerNF.png</texture>
</control> </control>
<control type="image" id="2"> <control type="image" id="2">
<visible>!Skin.HasSetting(hideMouse)</visible>
<description>Pointer Focus</description> <description>Pointer Focus</description>
<width>45</width> <width>45</width>
<height>45</height> <height>45</height>
<texture>UIControls/PointerFO.png</texture> <texture>UIControls/PointerFO.png</texture>
</control> </control>
<control type="image" id="3"> <control type="image" id="3">
<visible>!Skin.HasSetting(hideMouse)</visible>
<description>Pointer Drag</description> <description>Pointer Drag</description>
<width>45</width> <width>45</width>
<height>45</height> <height>45</height>
<texture>UIControls/PointerDrag.png</texture> <texture>UIControls/PointerDrag.png</texture>
</control> </control>
<control type="image" id="4"> <control type="image" id="4">
<visible>!Skin.HasSetting(hideMouse)</visible>
<description>pointer_click</description> <description>pointer_click</description>
<width>45</width> <width>45</width>
<height>45</height> <height>45</height>

View File

@ -233,6 +233,8 @@
<onup>9000</onup> <onup>9000</onup>
</control> </control>
</control> </control>
<!--touchscreen controls-->
<include>touchscreenControls</include>
<!--debugging--> <!--debugging-->
<include>DebugGrid</include> <include>DebugGrid</include>
<control type="label"> <control type="label">

View File

@ -148,6 +148,8 @@
<description>Change settings level</description> <description>Change settings level</description>
</control> </control>
</control> </control>
<!--touchscreen controls-->
<include>touchscreenControls</include>
<!--debugging--> <!--debugging-->
<include>DebugGrid</include> <include>DebugGrid</include>
<control type="label"> <control type="label">

View File

@ -163,6 +163,8 @@
</focusedlayout> </focusedlayout>
</control> </control>
</control> </control>
<!--touchscreen controls-->
<include>touchscreenControls</include>
<!--debugging--> <!--debugging-->
<include>DebugGrid</include> <include>DebugGrid</include>
<control type="label"> <control type="label">

View File

@ -61,6 +61,8 @@
<align>center</align> <align>center</align>
<label></label> <label></label>
</control> </control>
<!--touchscreen controls-->
<include>touchscreenControls</include>
<!--debugging--> <!--debugging-->
<include>DebugGrid</include> <include>DebugGrid</include>
<control type="label"> <control type="label">

View File

@ -208,7 +208,6 @@
<label2>$INFO[System.BuildVersion][CR]$INFO[System.BuildDate]</label2> <label2>$INFO[System.BuildVersion][CR]$INFO[System.BuildDate]</label2>
<property name="itemIcon">&gt;</property> <property name="itemIcon">&gt;</property>
<thumb></thumb> <thumb></thumb>
</item> </item>
<item id="2"> <item id="2">
<description>Connectivity</description> <description>Connectivity</description>
@ -216,7 +215,6 @@
<label2>$INFO[Network.IPAddress][CR]$INFO[Network.MacAddress]</label2> <label2>$INFO[Network.IPAddress][CR]$INFO[Network.MacAddress]</label2>
<property name="itemIcon">&gt;</property> <property name="itemIcon">&gt;</property>
<thumb></thumb> <thumb></thumb>
</item> </item>
<item id="3"> <item id="3">
<description>Storage</description> <description>Storage</description>
@ -224,7 +222,6 @@
<label2>$INFO[System.TotalSpace][CR]$INFO[System.FreeSpace]</label2> <label2>$INFO[System.TotalSpace][CR]$INFO[System.FreeSpace]</label2>
<property name="itemIcon">&gt;</property> <property name="itemIcon">&gt;</property>
<thumb></thumb> <thumb></thumb>
</item> </item>
<item id="4"> <item id="4">
<description>Memory</description> <description>Memory</description>
@ -232,7 +229,6 @@
<label2>$INFO[System.Memory(total),, $LOCALIZE[20161]][CR]$INFO[System.FreeMemory] / $INFO[System.Memory(free.percent),, $LOCALIZE[156]]</label2> <label2>$INFO[System.Memory(total),, $LOCALIZE[20161]][CR]$INFO[System.FreeMemory] / $INFO[System.Memory(free.percent),, $LOCALIZE[156]]</label2>
<property name="itemIcon">&gt;</property> <property name="itemIcon">&gt;</property>
<thumb></thumb> <thumb></thumb>
</item> </item>
<item id="5"> <item id="5">
<description>CPU</description> <description>CPU</description>
@ -240,7 +236,6 @@
<label2>$INFO[System.CpuFrequency][CR]$LOCALIZE[139]$INFO[System.CPUTemperature, ,]</label2> <label2>$INFO[System.CpuFrequency][CR]$LOCALIZE[139]$INFO[System.CPUTemperature, ,]</label2>
<property name="itemIcon">&gt;</property> <property name="itemIcon">&gt;</property>
<thumb></thumb> <thumb></thumb>
</item> </item>
<item id="6"> <item id="6">
<description>Screen Resolution</description> <description>Screen Resolution</description>
@ -248,7 +243,6 @@
<label2>$INFO[System.ScreenWidth] x $INFO[System.ScreenHeight][CR]$INFO[System.FPS,, $LOCALIZE[31144]]</label2> <label2>$INFO[System.ScreenWidth] x $INFO[System.ScreenHeight][CR]$INFO[System.FPS,, $LOCALIZE[31144]]</label2>
<property name="itemIcon">&gt;</property> <property name="itemIcon">&gt;</property>
<thumb></thumb> <thumb></thumb>
</item> </item>
<item id="7"> <item id="7">
<description>Media</description> <description>Media</description>
@ -256,7 +250,6 @@
<label2>$INFO[Window(Home).Property(Movies.Count),$LOCALIZE[20342]: ,][CR]$INFO[Window(Home).Property(TVShows.Count),$LOCALIZE[20343]: ,][CR]$INFO[Window(Home).Property(Music.AlbumsCount),$LOCALIZE[132]: ,]</label2> <label2>$INFO[Window(Home).Property(Movies.Count),$LOCALIZE[20342]: ,][CR]$INFO[Window(Home).Property(TVShows.Count),$LOCALIZE[20343]: ,][CR]$INFO[Window(Home).Property(Music.AlbumsCount),$LOCALIZE[132]: ,]</label2>
<property name="itemIcon">&gt;</property> <property name="itemIcon">&gt;</property>
<thumb></thumb> <thumb></thumb>
</item> </item>
<item id="8"> <item id="8">
<visible>PVR.HasTVChannels</visible> <visible>PVR.HasTVChannels</visible>
@ -265,7 +258,6 @@
<label2>$INFO[Pvr.BackendName][CR]$INFO[PVR.BackendDiskspace]</label2> <label2>$INFO[Pvr.BackendName][CR]$INFO[PVR.BackendDiskspace]</label2>
<property name="itemIcon">&gt;</property> <property name="itemIcon">&gt;</property>
<thumb></thumb> <thumb></thumb>
</item> </item>
<item id="9"> <item id="9">
<visible>!PVR.HasTVChannels</visible> <visible>!PVR.HasTVChannels</visible>
@ -274,7 +266,6 @@
<label2>$LOCALIZE[31118]</label2> <label2>$LOCALIZE[31118]</label2>
<property name="itemIcon">&gt;</property> <property name="itemIcon">&gt;</property>
<thumb></thumb> <thumb></thumb>
</item> </item>
</content> </content>
</control> </control>
@ -291,6 +282,8 @@
<autoscroll delay="5000" repeat="7500" time="5000">true</autoscroll> <autoscroll delay="5000" repeat="7500" time="5000">true</autoscroll>
</control> </control>
</control> </control>
<!--touchscreen controls-->
<include>touchscreenControls</include>
<!--debugging--> <!--debugging-->
<include>DebugGrid</include> <include>DebugGrid</include>
<control type="label"> <control type="label">

View File

@ -123,6 +123,15 @@
<onleft>8000</onleft> <onleft>8000</onleft>
<itemgap>0</itemgap> <itemgap>0</itemgap>
<orientation>vertical</orientation> <orientation>vertical</orientation>
<control type="radiobutton" id="21">
<visible>Container(8000).Hasfocus(1)</visible>
<description>Hide mouse pointer</description>
<width>14-col</width>
<label>31248</label>
<onclick>Skin.ToggleSetting(hideMouse)</onclick>
<selected>Skin.HasSetting(hideMouse)</selected>
</control>
<control type="radiobutton" id="6"> <control type="radiobutton" id="6">
<visible>Container(8000).Hasfocus(1)</visible> <visible>Container(8000).Hasfocus(1)</visible>
<description>Stop video on return to menu</description> <description>Stop video on return to menu</description>
@ -148,6 +157,7 @@
<onclick>Skin.Reset(homeBackground)</onclick> <onclick>Skin.Reset(homeBackground)</onclick>
<textwidth>8-col</textwidth> <textwidth>8-col</textwidth>
</control> </control>
<control type="radiobutton" id="1"> <control type="radiobutton" id="1">
<visible>Container(8000).Hasfocus(1)</visible> <visible>Container(8000).Hasfocus(1)</visible>
<description>Reverse power down options</description> <description>Reverse power down options</description>
@ -258,6 +268,8 @@
</control> </control>
</control> </control>
</control> </control>
<!--touchscreen controls-->
<include>touchscreenControls</include>
<!--debugging--> <!--debugging-->
<include>DebugGrid</include> <include>DebugGrid</include>
<control type="label"> <control type="label">

View File

@ -91,6 +91,8 @@
<shadowcolor></shadowcolor> <shadowcolor></shadowcolor>
</control> </control>
</control> </control>
<!--touchscreen controls-->
<include>touchscreenControls</include>
<!--debugging--> <!--debugging-->
<include>DebugGrid</include> <include>DebugGrid</include>
<control type="label"> <control type="label">

View File

@ -402,6 +402,8 @@
</content> </content>
</control> </control>
</control> </control>
<!--touchscreen controls-->
<include>touchscreenControls</include>
<!--debugging--> <!--debugging-->
<include>DebugGrid</include> <include>DebugGrid</include>
<control type="label"> <control type="label">

View File

@ -207,6 +207,8 @@
<description>Clear Bookmark button</description> <description>Clear Bookmark button</description>
</control> </control>
</control> </control>
<!--touchscreen controls-->
<include>touchscreenControls</include>
<!--debugging--> <!--debugging-->
<include>DebugGrid</include> <include>DebugGrid</include>
<control type="label"> <control type="label">

View File

@ -124,6 +124,14 @@
</control> </control>
<!--hidden buttons to handle dialog autohide--> <!--hidden buttons to handle dialog autohide-->
<control type="button" id="9876"> <control type="button" id="9876">
<visible>System.GetBool(input.enablemouse)</visible>
<include>dimensionsFullscreen</include>
<texturefocus></texturefocus>
<texturenofocus></texturenofocus>
<onclick>activatewindow(1105)</onclick>
</control>
<control type="button" id="9876">
<visible>!System.GetBool(input.enablemouse)</visible>
<posx>-100</posx> <posx>-100</posx>
<posy>-100</posy> <posy>-100</posy>
<height>1-col</height> <height>1-col</height>
@ -134,6 +142,8 @@
<onright>playercontrol(next)</onright> <onright>playercontrol(next)</onright>
<onclick>activatewindow(1105)</onclick> <onclick>activatewindow(1105)</onclick>
</control> </control>
<!--touchscreen controls-->
<include>touchscreenControls</include>
<!--debugging--> <!--debugging-->
<include>DebugGrid</include> <include>DebugGrid</include>
<control type="label"> <control type="label">

View File

@ -270,6 +270,8 @@
</control> </control>
</control> </control>
</control> </control>
<!--touchscreen controls-->
<include>touchscreenControls</include>
<!--debugging--> <!--debugging-->
<include>DebugGrid</include> <include>DebugGrid</include>
<control type="label"> <control type="label">

View File

@ -207,6 +207,8 @@
<include>hubMenu</include> <include>hubMenu</include>
<!--loading indicator--> <!--loading indicator-->
<include>loadingIndicator</include> <include>loadingIndicator</include>
<!--touchscreen controls-->
<include>touchscreenControls</include>
<!--debugging--> <!--debugging-->
<include>DebugGrid</include> <include>DebugGrid</include>
<control type="label"> <control type="label">

View File

@ -154,6 +154,8 @@
</focusedlayout> </focusedlayout>
</control> </control>
</control> </control>
<!--touchscreen controls-->
<include>touchscreenControls</include>
<!--debugging--> <!--debugging-->
<include>DebugGrid</include> <include>DebugGrid</include>
<control type="label"> <control type="label">

View File

@ -1016,3 +1016,7 @@ msgstr ""
msgctxt "#31247" msgctxt "#31247"
msgid "Import content" msgid "Import content"
msgstr "" msgstr ""
msgctxt "#31248"
msgid "Hide mouse pointer"
msgstr ""