Commit 1c0e685f authored by Abhinav Singh's avatar Abhinav Singh Committed by Adrien Plazas
Browse files

gamepad: Add GamepadMappingsManager vapi

This will be used to save the sdl_string through UI code.

https://bugzilla.gnome.org/show_bug.cgi?id=780754
parent 9d21ecce
......@@ -37,6 +37,7 @@ EXTRA_DIST = \
gamepad/gamepad-mapping.vapi \
gamepad/gamepad-mapping-error.h \
gamepad/gamepad-mappings-manager.h \
gamepad/gamepad-mappings-manager.vapi \
gamepad/gamepad-monitor.h \
gamepad/gamepad-monitor.vapi \
gamepad/linux/linux-raw-gamepad.h \
......@@ -223,6 +224,7 @@ gnome_games_VALAFLAGS = \
--pkg gamepad-dpad \
--pkg gamepad-input \
--pkg gamepad-mapping \
--pkg gamepad-mappings-manager \
--pkg gamepad-monitor \
--pkg raw-gamepad \
--gresources $(gresource_file) \
......
// This file is part of GNOME Games. License: GPL-3.0+.
[CCode (cheader_filename = "gamepad-mappings-manager.h")]
private class Games.GamepadMappingsManager : GLib.Object {
public static GamepadMappingsManager get_instance ();
public string? get_mapping (string guid);
public string? get_default_mapping (string guid);
public string? get_user_mapping (string guid);
public void save_mapping (string guid, string name, string mapping_string);
public void delete_mapping (string guid);
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment