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 eaabca9
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. Controller ID (equal to Kodi 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 eaabca9

Please sign in to comment.