Kodi Community Forum
How to create arbitrary DirectInput device controller profile? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Game support (https://forum.kodi.tv/forumdisplay.php?fid=292)
+--- Thread: How to create arbitrary DirectInput device controller profile? (/showthread.php?tid=338733)



How to create arbitrary DirectInput device controller profile? - scott967 - 2018-12-28

I have a bunch of controllers that don't match the pre-defined profiles.  It looks like you can create your own by writing a layout.xml but is there a schema for this? I take it you just define button1 - button32 but what about analog inputs (I think they are 1-8 but with legacy names like x / y / z / slider / x-rot / y-rot) and what about 4/8-way POV hats? Note:  Using DirectInput API.

scott s.
.


RE: How to create arbitrary DirectInput device controller profile? - garbear - 2018-12-28

In v17 you can map the controllers in the GUI. No need for tedious xml. Search Google for the wiki article I wrote on configuring controllers in Kodi.


RE: How to create arbitrary DirectInput device controller profile? - garbear - 2018-12-28

If the controllers look different, either choose the closest built-in profile (Kodi will figure it out), or (if you're a bamf) creat a new profile and send a PR to https://github.com/kodi-game/controller-topology-project for all to use. I can help with any guides you need if you want to go down the awesome route.