Skip to content

Commit

Permalink
Add schema for buttonmap.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
garbear committed Jan 6, 2018
1 parent 622768e commit 6867966
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Schema.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Schema for button map

## buttonmap.xml

A button map has the following properties:

1. Button map schema version
2. List of controllers

A controller has the following properties:

1. Add-on ID
2. Libretro device type (from the libretro API)
3. Libretro subclass index (defined by the core)
4. List of features

The purpose of the properties is to assign the libretro device type and subclass to the specified add-on ID.

A `<feature>` tag maps a feature name to a libretro constant. It has the following properties:

1. Feature name (from the kodi-game-controllers repo)
2. Libretro constant (from the libretro API)

0 comments on commit 6867966

Please sign in to comment.