-
Notifications
You must be signed in to change notification settings - Fork 0
Modifying Gestures
Take a look at this XML file:
https://raw.github.com/treason/gesturePad/master/www/mbeg.xml
Currently only 2 devices are possible
<device shortname='MCE' useNumberPad="true">
For media browser
<device shortname='DTV' useNumberPad="true">
For DirecTV
Each gesture is defined in an command node
<command>
<name>Back</name>
<action>
<dataType>text</dataType>
<method>GET</method>
<data><![CDATA[Back]]></data>
</action>
<gesture definition='1.DblTap' />
</command>
the gesture definition's can be found here: https://github.com/treason/gesturePad/wiki/Gesture-Naming-conventions
if the gesture node is omitted, the action will be listed in the command pick list.
Sometimes you have actions that aren't device specific, for example, volume up should be executed for the entire room, not just per device.
Example from: https://raw.github.com/treason/gesturePad/master/www/mbeg.xml
<rooms>
<room index="0" />
<room index="1" />
<room index="2" />
<room index="3" />
<room index="4" />
<roomgestures> <!-- gestures that run globally / independant of current device -->
<gesture definition='1.U.R'>
<device shortname='MCE'>
<command>
<name>VolumeUp</name>
</command>
</device>
</gesture>
The command name under room gestures, must match an existing command name under the device.
The room node defines what rooms (by index ascending order) this command is applied to