Customizing controls on iPad
#1
I'd like to change controls on the iPad version of XBMC, namely assign StepBack and StepForward to the left and right swipes in fullscreen video mode. But I just can't figure out what is the name of these controls/gestures in keymap.xml? Is it just <left> and <right>? Doesn't seem like it, because in the menus they act differently.

Right now swiping left or right while playing a video just exits to the previous menu with video playing in background. Swiping up/down is doing BigStepBack and BigStepForward which is fine

Any help/suggestions are greatly appreciated!
HTPC: XBMC Gotham 15.2 on Intel NUC DCCP847DYE (Intel Celeron 847), 2GB RAM, Samsung PM830 SSD, OpenELEC 6.0.0
SYSTEM: Panasonic TX-P65ST50, Pioneer VSX-922K, Wharfedale Diamond 9.5 + Diamond 9.CS + SW150 sub, Logitech Harmony 880 remote
Reply
#2
The iPad uses the keyboard.xml keymap file. Just make a copy of the one in your /private/var/stash/Applications.pwn/XBMC.app/XBMCData/XBMCHome/system/keymaps and move it over to the userdata/keymap directory.

Full path to your userdata is as follows: /var/mobile/Library/Preferences/XBMC/userdata/keymap/

Or you can download the keyboard.xml file directly from the github XBMC repository.

Right-click and save as: keyboard.xml

Then open up in a text editor of your choice and make the following changes...

----------------------------------------------
Left and right swipes on the iPad is currently using the backspace and tab keyboard mapping.

To change it, simply open up the keyboard.xml file and go to the <FullscreenVideo> section (Starting at line 195). <FullscreenVideo> section is responsible for customization of the keys/button while a video is being played fullscreen. Therefore, when in the filelist browser and other parts of the XBMC interface, swipeleft and right continue to allow you to navigate back through the folder hierarchy.

Under <FullscreenVideo>, simply change
Code:
<backspace>Fullscreen</backspace>
to
<backspace>StepBack</backspace>

By default, <tab> is mapped to swipe right. So add <tab>StepForward</tab> to <FullscreenVideo> section to customize the functionality to your desire.

Then simply save and sFTP into your ATV2. It is important that you log in as user: mobile password: alpine

Doing this will ensure the file is uploaded with the correct "mobile" user permission.

Upload your customized keyboard.xml file to: /var/mobile/Library/Preferences/XBMC/userdata/keymap/

That's all there is to it.
Reply
#3
Thanks! Everything is exactly as I wanted now!
HTPC: XBMC Gotham 15.2 on Intel NUC DCCP847DYE (Intel Celeron 847), 2GB RAM, Samsung PM830 SSD, OpenELEC 6.0.0
SYSTEM: Panasonic TX-P65ST50, Pioneer VSX-922K, Wharfedale Diamond 9.5 + Diamond 9.CS + SW150 sub, Logitech Harmony 880 remote
Reply

Logout Mark Read Team Forum Stats Members Help
Customizing controls on iPad0