[retro-gtk/wip/aplazas/core-view-joypad: 1/7] core-view: Remove the input manager
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [retro-gtk/wip/aplazas/core-view-joypad: 1/7] core-view: Remove the input manager
- Date: Fri, 4 Aug 2017 19:40:52 +0000 (UTC)
commit 69d6cf1fe54908266c1dc1581b52c12efa88d61d
Author: Adrien Plazas <kekun plazas laposte net>
Date: Sun Jul 30 12:50:50 2017 +0100
core-view: Remove the input manager
It will be replace in the next commits by device state accessors.
retro-gtk/retro-core-view.vala | 16 ++--------------
1 files changed, 2 insertions(+), 14 deletions(-)
---
diff --git a/retro-gtk/retro-core-view.vala b/retro-gtk/retro-core-view.vala
index 5bb67b0..67674c7 100644
--- a/retro-gtk/retro-core-view.vala
+++ b/retro-gtk/retro-core-view.vala
@@ -3,8 +3,6 @@
public class Retro.CoreView : Gtk.EventBox {
private Core core;
private CairoDisplay display;
- private InputDeviceManager input;
- private Mouse mouse;
construct {
can_focus = true;
@@ -13,25 +11,15 @@ public class Retro.CoreView : Gtk.EventBox {
display.visible = true;
display.can_focus = false;
add (display);
-
- input = new InputDeviceManager ();
- mouse = new Mouse (this);
-
- input.set_keyboard (this);
- input.set_controller_device (0, mouse);
}
public void set_core (Core? core) {
- if (this.core != null) {
+ if (this.core != null)
display.set_core (null);
- core.input_interface = null;
- }
this.core = core;
- if (core != null) {
+ if (core != null)
display.set_core (core);
- core.input_interface = input;
- }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]