Kodi Community Forum

Full Version: Roku 2 remote
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Has anyone been able to use one the of the roku 2 gaming remotes with xbmc? It seems like it should be possible since they run on bluetooth.
i know this is an old post but bump, wondering the same thing

http://www.amazon.com/Original-Roku-Remo...oku+remote is the remote
(2013-10-05, 00:14)verismo Wrote: [ -> ]i know this is an old post but bump, wondering the same thing

http://www.amazon.com/Original-Roku-Remo...oku+remote is the remote

bump! x.x
i'm trying to use my roku remote for my kodi install, i took the appletv keymap and quickly came up with this
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!-- This file contains the mapping of keys (gamepad,remote and keyboard) to actions within XBMC -->
<!-- The <global> section is a fall through - they will only be used if the button is not        -->
<!-- used in the current window's section.  Note that there is only handling                     -->
<!-- for a single action per button at this stage.                                               -->
<!-- For joystick/gamepad configuration under linux/win32, see below as it differs from xbox     -->
<!-- gamepads.                                                                                   -->

<!-- The format is:                                                                              -->
<!--    <device>                                                                                 -->
<!--      <button id="#">xbmc action</button>                                                    -->
<!--    </device>                                                                                -->

<!-- To map keys from other remotes using the RCA protocol, you may add <universalremote> blocks -->
<!-- In this case, the tags used are <obc#> where # is the original button code (OBC) of the key -->
<!-- You set it up by adding a <universalremote> block to the window or <global> section:        -->
<!--    <universalremote>                                                                        -->
<!--       <obc45>Stop</obc45>                                                                   -->
<!--    </universalremote>                                                                       -->

<!-- Note that the action can be a built-in function.                                            -->
<!--            eg <button id="e">ActivateWindow(Favourites)</button>                       -->
<!-- would bring up Favourites when the button with the id of 6 is press. In this case, "Menu"   -->

<!--                                                                                             -->
<!--  Button Ids:                                                                                -->
<!--  'id' is the button ID used by SDL. The button ids recognized from your remote appears      -->
<!--  in /var/log/syslog on the ATV2 for each button pressed and when debug mode is enabled      -->
<!--  Use your log to discover and map custom buttons to actions.                                -->
<!—-    Roku remote derived from apple tv remote                                           —->
<keymap>
  <global>
    <joystick name=“Roku”>
      <!-- plus       -->      <button id="u">Up</button>
      <!-- minus      -->      <button id="d">Down</button>
      <!-- left       -->      <button id="l">Left</button>
      <!-- right      -->      <button id="r">Right</button>
      <!-- center     -->      <button id="s">Select</button>
      <!-- menu       -->      <button id="e">Back</button>
      <!-- hold center-->      <button id="7">Fullscreen</button>
      <!-- hold menu  -->      <button id="3">ContextMenu</button>

      <!-- old buttons for ATV1 <2.2, used on OSX  -->
      <!-- hold left  -->      <button id="c">Left</button>
      <!-- hold right -->      <button id="8">Right</button>

      <!-- new aluminium remote buttons  -->
      <!-- play/pause -->      <button id="12">PlayPause</button>

      <!-- Additional buttons via Harmony Apple TV remote profile - these are also the learned buttons on Apple TV 2gen-->
      <!-- pageup     -->      <button id="x">PageUp</button>
      <!-- pagedown   -->      <button id="y">PageDown</button>
      <!-- pause      -->      <button id="15">Pause</button><!-- work? -->
      <!-- play2      -->      <button id="16">Play</button>
      <!-- stop       -->      <button id="17">Stop</button>
      <!-- fast fwd   -->      <button id="18">FastForward</button><!-- work? -->
      <!-- rewind     -->      <button id="19">Rewind</button>
      <!-- skip fwd   -->      <button id="20">SkipNext</button>
      <!-- skip back  -->      <button id="21">SkipPrevious</button>

      <!-- Learned remote buttons (ATV1 >2.3) -->
      <!-- Play       -->      <button id="70">Play</button>
      <!-- Pause      -->      <button id="71">Pause</button>
      <!-- Stop       -->      <button id="72">Stop</button>
      <!-- Previous   -->      <button id="73">SkipPrevious</button>
      <!-- Next       -->      <button id="74">SkipNext</button>
      <!-- Rewind     -->      <button id="75">Rewind</button>
      <!-- Forward    -->      <button id="76">FastForward</button>
      <!-- Return     -->      <button id="77">OSD</button>
      <!-- Enter      -->      <button id="78">ShowVideoMenu</button>

      <!-- few gestures from Apple's iPhone Remote (ATV1 > 2.3 ?) -->
      <!-- SwipeLeft  -->      <button id="80">Left</button>
      <!-- SwipeRight -->      <button id="81">Right</button>
      <!-- SwipeUp    -->      <button id="82">Up</button>
      <!-- SwipeDown  -->      <button id="83">Down</button>

      <!-- FlickLeft  -->      <button id="85">Left</button>
      <!-- FlickRight -->      <button id="86">Right</button>
      <!-- FlickUp    -->      <button id="87">Up</button>
      <!-- FlickDown  -->      <button id="88">Down</button>

    </joystick>
  </global>
  <Home>
    <joystick name=“Roku”>
      <button id="4">ActivateWindow(Favourites)</button>
      <button id="3">ActivateWindow(shutdownmenu)</button>
    </joystick>
  </Home>
  <FullscreenVideo>
    <joystick name=“Roku”>
      <button id="u">VolumeUp</button>
      <button id="d">VolumeDown</button>
      <button id="l">StepBack</button>
      <button id="r">StepForward</button>
      <button id="7">Pause</button>
      <button id="e">Stop</button>
      <button id="s">OSD</button>
      <button id="3">Fullscreen</button>
      <button id="c">Rewind</button>
      <button id="8">FastForward</button>
      <!-- pageup     -->      <button id="x">ChapterOrBigStepForward</button>
      <!-- pagedown   -->      <button id="y">ChapterOrBigStepBack</button>
      <!-- SwipeLeft  -->      <button id="80">StepBack</button>
      <!-- SwipeRight -->      <button id="81">StepForward</button>
      <!-- SwipeUp    -->      <button id="82">BigStepForward</button>
      <!-- SwipeDown  -->      <button id="83">BigStepBack</button>
      <!-- FlickLeft  -->      <button id="85">Rewind</button>
      <!-- FlickRight -->      <button id="86">FastForward</button>
      <!-- FlickUp    -->      <button id="87">BigStepForward</button>
      <!-- FlickDown  -->      <button id="88">BigStepBack</button>
    </joystick>
  </FullscreenVideo>
  <FullscreenLiveTV>
    <joystick name=“Roku”>
      <button id="l">ChannelDown</button>
      <button id="r">ChannelUp</button>
      <!-- pageup     -->      <button id="x">ChannelUp</button>
      <!-- pagedown   -->      <button id="y">ChannelDown</button>
    </joystick>
  </FullscreenLiveTV>
  <FullscreenRadio>
    <joystick name=“Roku”>
      <button id="l">ChannelDown</button>
      <button id="r">ChannelUp</button>
      <!-- pageup     -->      <button id="x">ChannelUp</button>
      <!-- pagedown   -->      <button id="y">ChannelDown</button>
    </joystick>
  </FullscreenRadio>
  <Visualisation>
    <joystick name=“Roku”>
      <button id="u">VolumeUp</button>
      <button id="d">VolumeDown</button>
      <button id="l">SkipPrevious</button>
      <button id="r">SkipNext</button>
      <button id="7">Pause</button>
      <button id="3">Fullscreen</button>
      <button id="s">OSD</button>
      <button id="e">Stop</button>
      <!-- SwipeLeft  -->      <button id="80">SkipPrevious</button>
      <!-- SwipeRight -->      <button id="81">SkipNext</button>
      <!-- FlickLeft  -->      <button id="85">SkipPrevious</button>
      <!-- FlickRight -->      <button id="86">SkipNext</button>
    </joystick>
  </Visualisation>
  <SlideShow>
    <joystick name=“Roku”>
      <button id="u">ZoomIn</button>
      <button id="d">ZoomOut</button>
      <button id="l">PreviousPicture</button>
      <button id="r">NextPicture</button>
      <button id="e">Stop</button>
      <button id="7">Info</button>
      <button id="s">Rotate</button>
      <!-- SwipeLeft  -->      <button id="80">PreviousPicture</button>
      <!-- SwipeRight -->      <button id="81">NextPicture</button>
      <!-- FlickLeft  -->      <button id="85">PreviousPicture</button>
      <!-- FlickRight -->      <button id="86">NextPicture</button>
    </joystick>
  </SlideShow>
  <ScreenCalibration>
    <joystick name=“Roku”>
      <button id="s">NextCalibration</button>
    </joystick>
  </ScreenCalibration>
  <VideoOSD>
    <joystick name=“Roku”>
      <button id="7">Back</button>
    </joystick>
  </VideoOSD>
  <VideoMenu>
    <joystick name=“Roku”>
      <button id="s">Select</button>
      <button id="e">Stop</button>
      <button id="3">OSD</button>
      <button id="7"/>
    </joystick>
  </VideoMenu>
  <MyVideoLibrary>
    <joystick name=“Roku”>
      <button id="7">Info</button>
    </joystick>
  </MyVideoLibrary>
  <MyVideoFiles>
    <joystick name=“Roku”>
      <button id="7">Info</button>
    </joystick>
  </MyVideoFiles>
  <PictureInfo>
    <joystick name=“Roku”>
      <button id="l">Left</button>
      <button id="r">Right</button>
      <!-- SwipeLeft  -->      <button id="80">Left</button>
      <!-- SwipeRight -->      <button id="81">Right</button>
      <!-- FlickLeft  -->      <button id="85">Left</button>
      <!-- FlickRight -->      <button id="86">Right</button>
    </joystick>
  </PictureInfo>
</keymap>

it is not pretty.
I'm having trouble identifying joystick name on my computer
i will post a long in the next hour
(2015-06-02, 12:10)trilliam Wrote: [ -> ]I'm having trouble identifying joystick name on my computer
i will post a long in the next hour
http://pastebin.com/KUk3eKNA
i opened the shutdown menu using the roku remote