Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add schema for buttonmap.xml #26

Merged
merged 1 commit into from
Jan 7, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)