[gnome-games] retro-input-manager: Fix setting default controllers



commit 91cf78dfe82e591b7f5b013781d0308e9544a47c
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Sun Oct 29 23:46:46 2017 +0100

    retro-input-manager: Fix setting default controllers
    
    Note to self: do not push code on master late on Sunday.

 src/retro/retro-input-manager.vala |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/retro/retro-input-manager.vala b/src/retro/retro-input-manager.vala
index 83537f4..15915a8 100644
--- a/src/retro/retro-input-manager.vala
+++ b/src/retro/retro-input-manager.vala
@@ -18,9 +18,9 @@ private class Games.RetroInputManager : Object {
                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 (port, default_joypad);
-               core.set_default_controller (port, default_mouse);
-               core.set_default_controller (port, default_pointer);
+               core.set_default_controller (default_joypad);
+               core.set_default_controller (default_mouse);
+               core.set_default_controller (default_pointer);
 
                gamepad_monitor = GamepadMonitor.get_instance ();
                gamepad_monitor.foreach_gamepad ((gamepad) => {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]