How use HID compatible gamepad in mediaportal (1 Viewer)

mm1352000

Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand

    Stéphane Lenclud

    Retired Team Member
  • Premium Supporter
  • April 29, 2013
    2,576
    1,294
    Home Country
    Germany Germany
    It won't work out of the box but it should work if you can figure out the changes needed for your device in generic-hid.xml

    You need to use MP1.11 or the installer from that Area51 thread.
    Offical MP 1.10 won't work.

    @andreyua If you feel brave enough to try and setup that XML config for your device just let me know and I'll explain to you how that works.

    Otherwise you need to wait until myself or someone spends the time doing it for you :)

    Which hardware are you trying to use?
     

    Stéphane Lenclud

    Retired Team Member
  • Premium Supporter
  • April 29, 2013
    2,576
    1,294
    Home Country
    Germany Germany
    Did you locate generic-hid.xml on your system?
    The default version should be in C:\Program Files (x86)\Team MediaPortal\MediaPortal\defaults\InputDeviceMappings
    Make a back up of that file just in case though you should be able to store your modified version in
    C:\ProgramData\Team MediaPortal\MediaPortal\InputDeviceMappings

    It should look like that: http://pastebin.com/yxF4p5UZ
    You will need to add at least one new HidUsageAction section to it.
    The trick is to find out which UsagePage and UsageCollection you need to use.
    You can specify them as name providing that MP supports it or decimal or hexadecimal value with 0x prefix.
    The named values MP supports are shown in there: http://pastebin.com/Zy0Bh5nV
    I'm guessing UsagePage should be GameControls but I'm not sure about UsageCollection really.
    Then once you have the right HidUsageAction you should be able to see the actual commands code sent by each buttons in the MP logs.
    Just make sure you enable extensive logs from the Remote HID tab.
    From there you have to setup an action mapping that works for you.
    Look in DirectInput.xml maybe.

    Hope it helps!
     

    Users who are viewing this thread

    Top Bottom