[gnome-games] core: Add InputCapabilities
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] core: Add InputCapabilities
- Date: Fri, 2 Sep 2016 22:50:12 +0000 (UTC)
commit cd4c0e2ce5583a355a14b85cad344712dd999efa
Author: Adrien Plazas <kekun plazas laposte net>
Date: Tue Aug 30 14:46:39 2016 +0200
core: Add InputCapabilities
This will be used in the next commits for RetroInputManager to properly
handle its controllers.
https://bugzilla.gnome.org/show_bug.cgi?id=770192
src/Makefile.am | 1 +
src/core/input-capabilities.vala | 6 ++++++
2 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index 59f7bf7..74ba471 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -41,6 +41,7 @@ gnome_games_SOURCES = \
core/game-source.vala \
core/game-uri-adapter.vala \
core/icon.vala \
+ core/input-capabilities.vala \
core/media.vala \
core/media-set/media-set.vala \
core/media-set/media-set-error.vala \
diff --git a/src/core/input-capabilities.vala b/src/core/input-capabilities.vala
new file mode 100644
index 0000000..673bdb7
--- /dev/null
+++ b/src/core/input-capabilities.vala
@@ -0,0 +1,6 @@
+// This file is part of GNOME Games. License: GPLv3
+
+public interface Games.InputCapabilities : Object {
+ public abstract bool get_allow_classic_gamepads () throws Error;
+ public abstract bool get_allow_analog_gamepads () throws Error;
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]