[gnome-games] input-capabilities: Add get_allow_keyboard_mode() method
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] input-capabilities: Add get_allow_keyboard_mode() method
- Date: Tue, 20 Nov 2018 01:43:31 +0000 (UTC)
commit 3424ca44f14ddc27442e974f0481b7ce108fd1d5
Author: Yetizone <andreii lisita gmail com>
Date: Wed Nov 14 18:36:56 2018 +0200
input-capabilities: Add get_allow_keyboard_mode() method
Add stub implementation in GameinfoDiscIdInputCapabilities.
src/core/input-capabilities.vala | 1 +
src/gameinfo/gameinfo-disc-id-input-capabilities.vala | 4 ++++
2 files changed, 5 insertions(+)
---
diff --git a/src/core/input-capabilities.vala b/src/core/input-capabilities.vala
index 2e1e43ab..d62513d9 100644
--- a/src/core/input-capabilities.vala
+++ b/src/core/input-capabilities.vala
@@ -3,4 +3,5 @@
public interface Games.InputCapabilities : Object {
public abstract bool get_allow_classic_gamepads () throws Error;
public abstract bool get_allow_analog_gamepads () throws Error;
+ public abstract bool get_allow_keyboard_mode ();
}
diff --git a/src/gameinfo/gameinfo-disc-id-input-capabilities.vala
b/src/gameinfo/gameinfo-disc-id-input-capabilities.vala
index 9bee5d2c..8affb0eb 100644
--- a/src/gameinfo/gameinfo-disc-id-input-capabilities.vala
+++ b/src/gameinfo/gameinfo-disc-id-input-capabilities.vala
@@ -32,4 +32,8 @@ public class Games.GameinfoDiscIdInputCapabilities : Object, InputCapabilities {
return "analog-gamepad" in controllers;
}
+
+ public bool get_allow_keyboard_mode () {
+ return false;
+ }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]