[gnome-games/wip/aplazas/options: 5/5] options
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/aplazas/options: 5/5] options
- Date: Fri, 24 Nov 2017 11:14:04 +0000 (UTC)
commit d402979a6ae6105a222da60594382bd2a862fed3
Author: Adrien Plazas <kekun plazas laposte net>
Date: Fri Nov 24 12:13:06 2017 +0100
options
flatpak/org.gnome.Games.json | 1 +
src/retro/retro-runner.vala | 14 ++++++++++++--
2 files changed, 13 insertions(+), 2 deletions(-)
---
diff --git a/flatpak/org.gnome.Games.json b/flatpak/org.gnome.Games.json
index c375f62..1e40af0 100644
--- a/flatpak/org.gnome.Games.json
+++ b/flatpak/org.gnome.Games.json
@@ -141,6 +141,7 @@
"sources": [
{
"type": "git",
+ "branch": "wip/aplazas/options",
"url": "https://git.gnome.org/browse/retro-gtk"
}
]
diff --git a/src/retro/retro-runner.vala b/src/retro/retro-runner.vala
index 9f6c4e9..9df5291 100644
--- a/src/retro/retro-runner.vala
+++ b/src/retro/retro-runner.vala
@@ -190,8 +190,7 @@ public class Games.RetroRunner : Object, Runner {
settings.changed["video-filter"].connect (on_video_filter_changed);
on_video_filter_changed ();
- view.can_grab_pointer = input_capabilities.get_allow_mouse () &&
- !input_capabilities.get_allow_pointer ();
+ view.can_grab_pointer = true;
prepare_core ();
@@ -269,6 +268,17 @@ public class Games.RetroRunner : Object, Runner {
core.set_medias (medias_uris);
core.boot ();
core.set_current_media (media_set.selected_media_number);
+
+ if (core.has_option ("desmume_pointer_type")) {
+ message ("has desmume_pointer_type");
+ var option = core.get_option ("desmume_pointer_type");
+ message ("got option");
+ if ("touch" in option.get_values ()) {
+ message ("touch in values");
+ option.set_value ("touch");
+ message ("set value touch");
+ }
+ }
}
public void pause () {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]