Posts: 6,564
Joined: Apr 2008
Reputation:
160
natethomas
Enjoying Retirement by Staying Busy
Posts: 6,564
Have you considered submitting the code for this support to TRAC? Also, is the source code available within that link?
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
archive contains the modified file.
this is cool for you windows users.
Posts: 7,256
Joined: Nov 2008
Reputation:
121
@natethomas: we discussed this modification when v8 was released, and the general view is that this hack is contrary to the spirit of XBMC because it builds in reliance on particular hardware. If we go down this road we'll end up with hacks to support every flavour of Windows remote control and things will get messy. It's such a simple modification that I'm happy to do it as a special build whenever a new version of XBMC is released.
As spiff says, the modified code is included in the zip if you fancy doing any changes yourself.
If we were going to change XBMC to support the MCE remote the most elegant way (but more work!) would be to enhance the keymap.xml file so it supported control and shift key modifiers e.g. as well as:
<keyboard>
<p>Play</p>
you could have:
<keyboard>
<control-shift-p>Play</control-shift-p>
The MCE remote just sends keystrokes, e.g. control shift P when the play button is pressed, so enhancing the keymap would allow it to be supported without any changes needed to XBMC itself. How much enthusiasm there'd be for this from the developers I don't know :-)
JR
Posts: 7,256
Joined: Nov 2008
Reputation:
121
Cool :-)
I'll have a play with incorporating this patch to see how well it works. I note that as it stands the patch doesn't process the shift key so it wouldn't support the MCE remote.
JR
Posts: 7,256
Joined: Nov 2008
Reputation:
121
Hi Peter,
The fast repeat rate isn't, or isn't solely, a problem with Windows. I have both v8.10 and v9.04.1 installed on my development PC, and the arrow key repeat is a sensible speed in v8.10 and too fast in v9.04 (with both the keyboard and remote). Therefore the problem was caused by a change between the two versions.
I am currently playing with the latest build from the SVN, and the key repeat seems fine in that, so the problem should be fixed when the next version is released. Incidentally I have managed to add my hacks to support the MCE remote to the current SVN build, so I'll make them available for the next release.
JR
Posts: 8
Joined: Sep 2009
Reputation:
0
2009-11-20, 23:33
(This post was last modified: 2009-11-21, 01:35 by howyalikdemapls.)
So I finally got around to giving it a try, and no dice. It seems to work ok for a bit, but then it stops working. I'm not sure if it's because I'm pressing buttons too fast, or what, but it just stops working. After a minute it starts to work again, but it's too inconsistent. It must be my remote or something though, because I noticed it happens even when I'm not using XBMC. Oh well, back to the Xbox remote for now. At least I was able to add some of the functions I want to eventghost.