[gnome-games] retro-input-manager: Use CoreView.set_as_default_controller()
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] retro-input-manager: Use CoreView.set_as_default_controller()
- Date: Sun, 12 Nov 2017 16:12:24 +0000 (UTC)
commit e77b9709c5fa727a607aac939fde15e3b2ed7ff2
Author: Adrien Plazas <kekun plazas laposte net>
Date: Sun Nov 12 15:30:45 2017 +0100
retro-input-manager: Use CoreView.set_as_default_controller()
src/retro/retro-input-manager.vala | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/src/retro/retro-input-manager.vala b/src/retro/retro-input-manager.vala
index dad6bfb..694ed5f 100644
--- a/src/retro/retro-input-manager.vala
+++ b/src/retro/retro-input-manager.vala
@@ -14,13 +14,7 @@ private class Games.RetroInputManager : Object {
core_view_joypad = view.as_controller (Retro.ControllerType.JOYPAD);
core.set_keyboard (view);
-
- var default_joypad = view.as_controller (Retro.ControllerType.JOYPAD);
- var default_mouse = view.as_controller (Retro.ControllerType.MOUSE);
- var default_pointer = view.as_controller (Retro.ControllerType.POINTER);
- core.set_default_controller (default_joypad);
- core.set_default_controller (default_mouse);
- core.set_default_controller (default_pointer);
+ view.set_as_default_controller (core);
monitor = new Manette.Monitor ();
var iterator = monitor.iterate ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]