| 1 | # Contributing |
| 2 | |
| 3 | Several ways you can contribute to this project. |
| 4 | |
| 5 | ## Share button maps |
| 6 | |
| 7 | #### 1. Check out existing button maps |
| 8 | |
| 9 | You can see the existing button maps here: |
| 10 | |
| 11 | * [XML button maps](https://github.com/xbmc/peripheral.joystick/tree/master/peripheral.joystick/resources/buttonmaps/xml) |
| 12 | |
| 13 | #### 2. Create the button map |
| 14 | |
| 15 | Button maps can be generated from within the GUI. See the following wiki articles: |
| 16 | |
| 17 | * **[HOW-TO: Configure controllers](https://kodi.wiki/view/HOW-TO:Configure_controllers)** |
| 18 | * **[HOW-TO: Map multiple controllers](https://kodi.wiki/view/HOW-TO:Map_multiple_controllers)** |
| 19 | |
| 20 | These map GUI elements to XML files. The XML files can be found in [userdata](https://kodi.wiki/view/Userdata): |
| 21 | |
| 22 | ``` |
| 23 | userdata/addon_data/peripheral.joystick/resources/buttonmaps/xml/<joystick driver>/ |
| 24 | ``` |
| 25 | |
| 26 | #### 3. Submit the button map |
| 27 | |
| 28 | Fork [peripheral.joystick](https://github.com/xbmc/peripheral.joystick) and clone it to your working directory. Copy the XML file created by the GUI (or by hand) to the folder: |
| 29 | |
| 30 | ``` |
| 31 | peripheral.joystick/resources/buttonmaps/xml/<joystick driver>/ |
| 32 | ``` |
| 33 | |
| 34 | Commit the file and send the pull request to the [peripheral.joystick](https://github.com/xbmc/peripheral.joystick) repo. |
| 35 | |
| 36 | ## Create controller profiles |
| 37 | |
| 38 | If you want a new awesome controller to be shown in the GUI, you can create one yourself. |
| 39 | |
| 40 | #### 1. Check out existing controller profiles |
| 41 | |
| 42 | The controllers in the GUI are defined by Kodi add-ons. You can see the current set of add-ons in the [controller topology project](https://github.com/kodi-game/controller-topology-project): |
| 43 | |
| 44 | * [Kodi controller add-ons](https://github.com/kodi-game/controller-topology-project/tree/master/addons) |
| 45 | |
| 46 | #### 2. Create a new controller profile |
| 47 | |
| 48 | Controllers can be added by creating a controller add-on. The format is defined here: |
| 49 | |
| 50 | * [Controller add-on format](https://github.com/kodi-game/controller-topology-project/blob/master/Readme-Addons.md) |