[gnome-games/wip/abhinavsingh/gamepad-config: 5/23] gamepad: Add GamepadViewConfiguration
- From: Abhinav Singh <abhinavsingh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/abhinavsingh/gamepad-config: 5/23] gamepad: Add GamepadViewConfiguration
- Date: Mon, 31 Jul 2017 07:15:44 +0000 (UTC)
commit 3f261379a83345436d7f7c2d1549a1d0243d3c27
Author: theawless <theawless gmail com>
Date: Fri Jun 30 23:18:44 2017 +0530
gamepad: Add GamepadViewConfiguration
This provides svg information to GamepadView so it can be used for
multiple svgs.
src/Makefile.am | 1 +
src/ui/gamepad-view-configuration.vala | 11 +++++++++++
2 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index b635a81..22924e3 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -144,6 +144,7 @@ gnome_games_SOURCES = \
ui/error-info-bar.vala \
ui/game-icon-view.vala \
ui/game-thumbnail.vala \
+ ui/gamepad-view-configuration.vala \
ui/media-selector.vala \
ui/media-menu-button.vala \
ui/preferences-page.vala \
diff --git a/src/ui/gamepad-view-configuration.vala b/src/ui/gamepad-view-configuration.vala
new file mode 100644
index 0000000..fb3be00
--- /dev/null
+++ b/src/ui/gamepad-view-configuration.vala
@@ -0,0 +1,11 @@
+// This file is part of GNOME Games. License: GPL-3.0+.
+
+private struct Games.GamepadInputPath {
+ GamepadInput input;
+ string path;
+}
+
+private struct Games.GamepadViewConfiguration {
+ string svg_path;
+ GamepadInputPath[] input_paths;
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]