Posts: 1,506
Joined: Nov 2013
Lircmap maps a general lirc based remote to an internal reference remote. remote.xml then keymaps this. Alternatively if you hate yourself you can do an entire keymap for an universal remote on your own. You are sticking the remote mapping in keyboard.xml. if you prefer to make a mess that is fine since there is no value to the filename. You can call it stupid_mess.xml for all kodi cares.
Posts: 1,506
Joined: Nov 2013
Do you need more keys than those available? I suggest using named buttons unless you have to. Then you can monkey existing lircmaps.
You use keyboard mappings for remotes acting as a hid device (= keyboard emulation).
Posts: 55
Joined: Mar 2015
Reputation:
0
2015-04-03, 18:13
(This post was last modified: 2015-04-03, 18:15 by RoccoJones.)
I don't need more keys, but I don't know if the right keys come off the shelf.
You seem to be the only person in the last couple of weeks I've talked to who knows what he's talking about. Unfortunately, I don't really know what you're talking about. What are the "named buttons"? Or putting it another way, what should I have done w/the above remote.xml and Lircmap.xml files? Let's start w/baby steps: if you haven't guessed yet, I'm trying to map this button called "TOP MENU", which .h files and irw seem to confirm is 238 to bring me to Kobi's home screen. How would I do that?
Posts: 1,506
Joined: Nov 2013
2015-04-03, 18:31
(This post was last modified: 2015-04-03, 18:35 by ironic_monkey.)
Lircmap format:
Code:
<namedbuttononreferenceremote>lircbutton</namedbuttononreferenceremote>
This maps the 'lircbutton' to some (named) button on the reference remote.
remote.xml format. Example button names: title, guide, left, one.
Code:
<namedbuttononreferenceremote>action</namedbuttononreferenceremote>
This maps the button to some action. Example actions: playpause, activatewindow (home), showinfo.
The idea is that you only have to do the lircmap part since somebody already took care of the action mapping.
Posts: 55
Joined: Mar 2015
Reputation:
0
I imagine those tags and their contents are not literal. Thing is, I've tried every combination I can manage that conforms to that template and nothing works. I need to know what literal strings I should be using for all this.
Posts: 1,506
Joined: Nov 2013
See the existing Lircmap.xml for the 'named buttons' and irw will echo the lirc button names to the terminal.
https://github.com/xbmc/xbmc/blob/master...ircmap.xml
Posts: 1,506
Joined: Nov 2013
2015-04-03, 19:13
(This post was last modified: 2015-04-03, 19:17 by ironic_monkey.)
remove that <GA629PA> tag from remote.xml it is something i have no idea why you invented. Again, Lircmap maps your remote to the internal reference remote. remote.xml keymaps the reference remote. It has no idea what device is used at that point. Finally i repeat myself another time. You only have to do lircmap.the action mapping is done in the default remote.xml. you only add that if you need to change something (assuming the original file hasnt been removed!)
Posts: 55
Joined: Mar 2015
Reputation:
0
Ok I removed remote.xml, so the only remote.xml and Keyboard.xml that should influence anything are the defaults. I didn't change Lircmap.xml from last time. But it's still not working ("TOP MENU", aka "BTN_TOP", is not taking me to the home screen) and I don't see anything new in log.
Posts: 1,506
Joined: Nov 2013
see remote.xml for the action mappings. menu is not mapped to activatewindow(home).
https://github.com/xbmc/xbmc/blob/master...te.xml#L55
there is no key mapped by default. if you want to remap the menu nutton to do so you add
Code:
<keymap>
<global>
<remote>
<menu>activatewindow(home)</menu>
</remote>
</global>
</keymap>
as userdata/keymaps/remote.xml in ~/.kodi. this will override only that particular mapping keeping the rest.
Posts: 55
Joined: Mar 2015
Reputation:
0
Done. No change.
Are you sure remote.xml should be in userdata/keymaps? I usually put it in userdata. Trying both didn't make a difference.
Incidentally, pushing TOP MENU never seemed to do the PreviousMenu action either.
Posts: 1,506
Joined: Nov 2013
2015-04-03, 21:13
(This post was last modified: 2015-04-03, 21:13 by ironic_monkey.)
Yes certain. See top of log it will show which files are parsed. Lircmap goes straight in userdata though.