Single mapping file for all inputs

This commit is contained in:
Iwan Timmer
2017-04-08 15:50:24 +02:00
parent 9f43712fc8
commit 1d7c2be7e2
13 changed files with 131 additions and 89 deletions

View File

@@ -17,6 +17,8 @@
* along with Moonlight; if not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include <stdbool.h>
struct mapping {
@@ -41,6 +43,8 @@ struct mapping {
short abs_lefttrigger, abs_righttrigger;
short btn_lefttrigger, btn_righttrigger;
struct mapping* next;
};
void mapping_load(char* fileName, struct mapping* map);
struct mapping* mapping_load(char* fileName);