Archive:Unbranded MCE remote: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
>Vyasa
No edit summary
Line 8: Line 8:
It isn't very configurable and certain buttons don't work as they should. For example, the fast forward and rewind buttons skip forward or backwards instead of moving gradually.
It isn't very configurable and certain buttons don't work as they should. For example, the fast forward and rewind buttons skip forward or backwards instead of moving gradually.


If you want to add mappings for the four coloured keys here are the entries you need in keyboard.xml. The other keys can't be trapped.
If you want to add mappings for the four coloured keys here are the entries you need in keyboard.xml. Every button can be mapped, with one possible exception (the red Power button).


<pre>&lt;f1 mod="ctrl,alt"&gt;Notification(Key, Green, 3)&lt;/f1&gt;  &lt;!-- Green --&gt;
<pre>&lt;f1 mod="ctrl,alt"&gt;Notification(Key, Green, 3)&lt;/f1&gt;  &lt;!-- Green --&gt;
Line 27: Line 27:
   ...
   ...
&lt;/keyboard&gt;</pre>
&lt;/keyboard&gt;</pre>
Update November 2011: This remote works like a charm. Here is a more complete map for every key on the remote except the Red Power Button. These changes go in your keyboard.xml file. The default behavior is to pop up a notification with the key combination passed. You should probably replace this behavior with what you want.
<pre>
&lt;!-- Generic MCE Remote Keys --&gt;
&lt;one mod="ctrl,alt"&gt;Notification(Key Pressed, Ctrl+Alt+4)&lt;/one&gt; &lt;!-- Green --&gt;
&lt;two mod="ctrl,alt"&gt;Notification(Key Pressed, Ctrl+Alt+4)&lt;/two&gt; &lt;!-- Orange --&gt;
&lt;three mod="ctrl,alt"&gtNotification(Key Pressed, Ctrl+Alt+4)&lt;/three&gt; &lt;!-- Blue --&gt;
&lt;four mod="ctrl,alt"&gt;Notification(Key Pressed, Ctrl+Alt+4)&lt;/four&gt; &lt;!-- Yellow --&gt;
&lt;f4 mod="alt"&gt;Notification(Key Pressed, Alt-F4)&lt;/f4&gt; &lt;!-- The [X] Button--&gt;
&lt;o mod="ctrl"&gt;Notification(Key Pressed, Ctrl-O)&lt;/o&gt; &lt;!-- The Open File button--&gt;
&lt;leftwindows&gt;Notification(Key Pressed, Left Windows Key)&lt;/leftwindows&gt; &lt;!-- The Windows Button --&gt;
&lt;launch_mail&gt;Notification(Key Pressed, Launch Mail)&lt;/launch_mail&gt; &lt;!-- The Mail Button --&gt;
&lt;browser_home&gt;Notification(Key Pressed, Launch Browser)&lt;/browser_home&gt; &lt;!-- The IE Button --&gt;
&lt;d mod="leftwindows"&gt;Notification(Key Pressed, LeftWin+D)&lt;/d&gt; &lt;!-- The Desktop Button --&gt;
&lt;e mod="leftwindows"&gt;Notification(Key Pressed, LeftWin+E)&lt;/e&gt; &lt;!-- The My Computer Button --&gt;
&lt;tab mod="alt"&gt;Notification(Key Pressed, Alt+Tab)&lt;/tab&gt; &lt;!-- The Switch Windows Button --&gt;
&lt;return mod="alt"&gt;Notification(Key Pressed, Alt+Return)&lt;/return&gt; &lt;!-- The Full Screen Button --&gt;
&lt;!-- Haven't gotten Power Button to work --&gt;
&lt;/keyboard&gt;
   
&lt;!-- Button between L and R mouse buttons shows up as joystick button --&gt;   
&lt;joystick name="HID 073a:2230"&gt;
&lt;button id="79"&gt;Notification(Key Pressed, Joystick Button 79)&lt;/button&gt;
&lt;/joystick&gt;
&lt;!-- End Generic Remote Keys --&gt;
</pre>
}}
}}

Revision as of 09:10, 6 November 2011