iPhone - Key Remapping is Ignored after Backgrounding
#1
I'm on an iPhone 6 Plus, jailbroken and on the latest nightly build of Kodi.

I'm having an issue where my Keyboard.XML file is ignored after backgrounding Kodi and then bringing it back into focus. It's a simple remapping of the "Play/Pause" button to Select, and the "b" button to go Back, and it's used with a bluetooth remote as the remote has no enter or back button.

Here's my keyboard.xml:

<keymap>
<global>
<keyboard>
<b>Back</b>
<return>Select</return>
<enter>Select</enter>
<play_pause>Select</play_pause>
</keyboard>
</global>
</keymap>


In the Log you can see that my modified Keyboard.XML file has "b" mapped to the "Back" action. It works initially (and is logged), but when I change the focus to the Home Screen, and then back to Kodi, it doesn't register in the log. The arrow keys work fine after bringing Kodi back from the background because they are not remapped in the Keyboard.XML file.

10:48:40 T:175652864 DEBUG: OnKey: b (0xf042) pressed, action is Back
10:48:40 T:175652864 DEBUG: CGUIWindowManager:TonguereviousWindow: Deactivate
10:48:43 T:922089948 DEBUG: CWinSystemIOS::OnAppFocusChange: 0
10:48:44 T:922089948 DEBUG: CWinSystemIOS::OnAppFocusChange: 1
10:48:54 T:175652864 DEBUG: OnKey: up (0xf080) pressed, action is Up
10:48:55 T:175652864 DEBUG: Keyboard: scancode: 0x00, sym: 0x0112, unicode: 0x0000, modifier: 0x0
10:48:55 T:175652864 DEBUG: OnKey: down (0xf081) pressed, action is Down
10:49:03 T:922089948 DEBUG: CWinSystemIOS::OnAppFocusChange: 0

I would love some help on this, as right now I have to restart Kodi every time it's backgrounded to read a text/get directions/ect.

Also, I've tried the KeyMap program addon with the same result.

Thanks!
Reply
#2
are we talking about a bluetooth keyboard here?
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply
#3
(2014-11-25, 22:28)Memphiz Wrote: are we talking about a bluetooth keyboard here?

It's actually a BT Remote (Satechi), but yes it's recognized and acts as a BT Keyboard.
Reply
#4
I was just wondering if there have been any updates to this, or if it's been recognized and on a roadmap. It's currently a huge holdup in my setup.

Thanks!
Reply
#5
Are any default keys working other than the arrow keys when you come back from backgrounding?
Reply
#6
(2014-12-30, 01:36)Ned Scott Wrote: Are any default keys working other than the arrow keys when you come back from backgrounding?

Thanks for the help - No other default keys other than the arrow keys work when coming back from backgrounding.

You can see in the below debug log that I was able to press "return" along with the Number keys before backgrounding, but aftewards only the arrow keys were working:

17:14:56 T:185065472 DEBUG: Keyboard: scancode: 0x00, sym: 0x0031, unicode: 0x0031, modifier: 0x0
17:14:56 T:185065472 DEBUG: OnKey: one (0xf031) pressed, action is Number1
17:14:56 T:185065472 DEBUG: Keyboard: scancode: 0x00, sym: 0x0032, unicode: 0x0032, modifier: 0x0
17:14:56 T:185065472 DEBUG: OnKey: two (0xf032) pressed, action is Number2
17:14:57 T:185065472 DEBUG: Keyboard: scancode: 0x00, sym: 0x0033, unicode: 0x0033, modifier: 0x0
17:14:57 T:185065472 DEBUG: OnKey: three (0xf033) pressed, action is Number3
17:14:59 T:185065472 DEBUG: Keyboard: scancode: 0x00, sym: 0x000d, unicode: 0x000d, modifier: 0x0
17:14:59 T:185065472 DEBUG: OnKey: return (0xf00d) pressed, action is Select
17:15:05 T:862816732 DEBUG: CWinSystemIOS::OnAppFocusChange: 0
17:15:07 T:862816732 DEBUG: CWinSystemIOS::OnAppFocusChange: 1
17:15:08 T:185065472 DEBUG: Keyboard: scancode: 0x00, sym: 0x0113, unicode: 0x0000, modifier: 0x0
17:15:08 T:185065472 DEBUG: OnKey: right (0xf083) pressed, action is Right
17:15:09 T:185065472 DEBUG: Keyboard: scancode: 0x00, sym: 0x0114, unicode: 0x0000, modifier: 0x0
17:15:09 T:185065472 DEBUG: OnKey: left (0xf082) pressed, action is Left
Reply

Logout Mark Read Team Forum Stats Members Help
iPhone - Key Remapping is Ignored after Backgrounding0