Archive:MINIX A2: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
Norsak (talk | contribs)
No edit summary
Norsak (talk | contribs)
No edit summary
Line 77: Line 77:


== keyboard.xml  (additions)==
== keyboard.xml  (additions)==
If there are 2 keymap entries for the same key, the last entry wins.<br/>
If there are multiple keymap entries for the same key anme, the last entry wins.<br/>
I recommend placing manual entries at the end of the <keyboard> stanza inside <global><br />
I recommend placing manual entries at the end of the <keyboard> stanza inside <global><br />


This saves us the effort of finding the original key assignment
This saves us the effort of finding and editing the original key assignment
       ....
       ....
       <F2>NextSubtitle</F2>
       <F2>NextSubtitle</F2>

Revision as of 13:12, 25 January 2015


This is the MINIX NEO A2 Remote.

It has a full QWERTY keyboard on the back, which allows the use of the Search function in KODI.
As much as we would like every button to work 'out of the box', we need to make changes to the keymaps files for several of the front facing buttons
This task is necessary for the majority of RF remotes on the market.

Keystrokes sent were discovered by enabling KODI's debugging feature, and monitoring the debug log
The Actions associated with each button are completely within the user's discretion.
The example keymaps shown are only one possible permutation

Button Keycode key name Desired KODI action keymap file keymaps entry(s) Notes
0xf0de power Power Menu keyboard.xml <power>ActivateWindow(shutdownmenu)</power> Works by default
0xf0b7 volume_mute Mute keyboard.xml <volume_mute>Mute</volume_mute> Works by default
Sends signal, but not recognized by KODI
0xf091 F2 Next Subtitle keyboard.xml <F2>NextSubtitle</F2>
0xf088 home Next Audio Language keyboard.xml <home>AudioNextLanguage</home>
0xf080 up Navigate Up keyboard.xml <up>Up</up> Works by default
leftclick Select mouse.xml <leftclick>Select</leftclick>
<mousedragend>Select</mousedragend>
0xf081 down Navigate down keyboard.xml <down>Down</down> Works by default
0xf082 left Navigate Left keyboard.xml <left>Left</left> Works by default
0xf083 right Navigate Right keyboard.xml <right>Right</right> Works by default
rightclick Back mouse.xml <rightclick>Back</rightclick>
<mouserdragend>Back</mouserdragend>
0xf00d return Search menu keyboard.xml <return>SendClick(8)</return> Compromised choice, unfortunately a duplicate of this key
exists on the back of the remote. Both keys are affected by custom keymap entry
-- -- This button only
Enables/disables the Air-mouse
0xf0b8 volume_down Volume Down keyboard.xml <volume_down>VolumeDown</volume_down> Works by default
0xf090 F1 Stop Playback keyboard.xml <F1>Stop</F1>
0xf0b9 volume_up Volume Up keyboard.xml <volume_up>VolumeDown</volume_up> Works by default
0xf0bb prev_track Page Up keyboard.xml <prev_track>PageUp</prev_track>
0xf0bd play_pause Pause / Play keyboard.xml <play_pause>PlayPause</play_pause> Works by default
0xf0ba next_track Page Down keyboard.xml <next_track>PageDown</next_track>

mouse.xml

<keymap>
 <global>
   <mouse>
     <leftclick>Select</leftclick>
     <rightclick>Back</rightclick>
     <middleclick>noop</middleclick>
     <doubleclick id="0">noop</doubleclick>
     <longclick id="0">noop</longclick>
     <wheeldown>noop</wheeldown>
     <wheelup>noop</wheelup>
     <mousedrag>noop</mousedrag>
     <mousemove>noop</mousemove>
     <mousedragend>Select</mousedragend>
     <mouserdragend>Back</mouserdragend>
   </mouse>
 </global>
</keymap>

keyboard.xml (additions)

If there are multiple keymap entries for the same key anme, the last entry wins.
I recommend placing manual entries at the end of the <keyboard> stanza inside <global>

This saves us the effort of finding and editing the original key assignment

     ....
     <F2>NextSubtitle</F2>
     <home>AudioNextLanguage</home>
     <return>SendClick(8)</return>
     <F1>Stop</F1>
     <prev_track>PageUp</prev_track>
     <next_track>PageDown</next_track>
   </keyboard>
 </global>
 ....