[gnome-games/wip/exalm/sharp-x68000] keyboard
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/sharp-x68000] keyboard
- Date: Fri, 30 Nov 2018 15:59:25 +0000 (UTC)
commit df6be3deccde34393ff8913b5a81045a6d999d30
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Fri Nov 30 20:59:06 2018 +0500
keyboard
src/retro/retro-input-manager.vala | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/src/retro/retro-input-manager.vala b/src/retro/retro-input-manager.vala
index cead29ea..4f8ec12d 100644
--- a/src/retro/retro-input-manager.vala
+++ b/src/retro/retro-input-manager.vala
@@ -15,10 +15,15 @@ private class Games.RetroInputManager : Object {
_input_mode = value;
- if (value == InputMode.KEYBOARD)
+ var core_view_joypad = view.as_controller (Retro.ControllerType.KEYBOARD);
+
+ if (value == InputMode.KEYBOARD) {
core.set_keyboard (view);
- else
+ core.set_default_controller (Retro.ControllerType.KEYBOARD, core_view_joypad);
+ } else {
core.set_keyboard (null);
+ core.set_default_controller (Retro.ControllerType.KEYBOARD, null);
+ }
update_core_view_gamepad ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]