Kodi Community Forum

Full Version: Custom joystick keymap doesn't work
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I want to use my Thrustmaster Top Gun Fox 2 Pro USB Joystick with XBMC.

I wrote the following file (C:\Program Files (x86)\XBMC\system\keymaps\joystick.0.xml):

PHP Code:
<keymap>
<global>
  <
joystick name="Joystick 0">
    <
button id="6">PageUp</button>
    <
button id="7">PageDown</button>
    <
button id="2">Select</button>
    <
button id="5">Pause</button>
  </
joystick>
</global>
</
keymap

I found the joystick name and button id in the XBMC log file:
PHP Code:
09:49:05 T:4332 M:2922582016   DEBUGJoystick 0 button 5 Down
09
:49:06 T:4332 M:2922659840   DEBUGJoystick 0 button 5 Up
09
:49:06 T:4332 M:2922659840   DEBUGJoystick 0 button 6 Down
09
:49:06 T:4332 M:2922659840   DEBUGJoystick 0 button 6 Up
09
:49:06 T:4332 M:2922663936   DEBUGJoystick 0 button 7 Down
09
:49:06 T:4332 M:2922668032   DEBUGJoystick 0 button 7 Up
09
:49:08 T:4332 M:2922733568   DEBUGJoystick 0 button 2 Down
09
:49:08 T:4332 M:2922639360   DEBUGJoystick 0 button 2 Up 

Remote control via keyboard works fine, nothing happens when I use my joystick, even though it registers the presses.

Debug information also says:
Quote:09:58:13 T:6964 M:2858815488 INFO: Loading special://xbmc/system/keymaps/joystick.0.xml

I also found the following in log file:
Quote:09:58:13 T:6964 M:2881724416 NOTICE: Enabled Joystick: Top Gun Fox 2 Pro
09:58:13 T:6964 M:2881724416 NOTICE: Details: Total Axis: 4 Total Hats: 1 Total Buttons: 7

But using that name doesn't work neither. I enabled and disabled 'Remote control sends keyboard presses' but that doesn't make any difference.

Does anyone have an insight on what's going on here? Help would be appreciated! Smile
name should be 'Top Gun Fox 2 Pro', not Joystick 0.
spiff Wrote:name should be 'Top Gun Fox 2 Pro', not Joystick 0.

As i said, i tried that too:

PHP Code:
<keymap>
<global>
  <
joystick name="Top Gun Fox 2 Pro">
    <
button id="6">PageUp</button>
    <
button id="7">PageDown</button>
    <
button id="2">Select</button>
    <
button id="5">Pause</button>
  </
joystick>
</global>
</
keymap

Doesn't work though. Sad