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

gamepad: Add GamepadMapping vapi

This will be used to add set_mapping() in Gamepad.

https://bugzilla.gnome.org/show_bug.cgi?id=780754
parent 573da0c8
......@@ -34,6 +34,7 @@ EXTRA_DIST = \
gamepad/gamepad-input.h \
gamepad/gamepad-input.vapi \
gamepad/gamepad-mapping.h \
gamepad/gamepad-mapping.vapi \
gamepad/gamepad-mapping-error.h \
gamepad/gamepad-mappings-manager.h \
gamepad/gamepad-monitor.h \
......@@ -221,6 +222,7 @@ gnome_games_VALAFLAGS = \
--pkg gamepad \
--pkg gamepad-dpad \
--pkg gamepad-input \
--pkg gamepad-mapping \
--pkg gamepad-monitor \
--pkg raw-gamepad \
--gresources $(gresource_file) \
......
// This file is part of GNOME Games. License: GPL-3.0+.
[CCode (cheader_filename = "gamepad-mapping.h")]
private class Games.GamepadMapping : GLib.Object {
public GamepadMapping.from_sdl_string (string? mapping_string) throws GLib.Error;
public void get_dpad_mapping (int dpad_index, int dpad_axis, int dpad_value, ref GamepadInput destination);
public void get_axis_mapping (int axis_number, ref GamepadInput destination);
public void get_button_mapping (int button_number, ref GamepadInput destination);
}
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