Commit 208a1243 authored by Abhinav Singh's avatar Abhinav Singh
Browse files

core: Add 'controller-set' property to Runner

Allows to share the controller information with the UI code.

https://bugzilla.gnome.org/show_bug.cgi?id=780756
parent c6c37628
......@@ -17,6 +17,10 @@ public class Games.CommandRunner : Object, Runner {
get { return null; }
}
internal ControllerSet? controller_set {
get { return null; }
}
private string[] args;
private bool watch_child;
......
......@@ -7,6 +7,7 @@ public interface Games.Runner : Object {
public abstract bool can_quit_safely { get; }
public abstract bool can_resume { get; }
public abstract MediaSet? media_set { get; }
internal abstract ControllerSet? controller_set { get; }
public abstract bool check_is_valid (out string error_message) throws Error;
public abstract Gtk.Widget get_display ();
......
......@@ -17,6 +17,10 @@ private class Games.DummyRunner : Object, Runner {
get { return null; }
}
internal ControllerSet? controller_set {
get { return null; }
}
public bool check_is_valid (out string error_message) throws Error {
return true;
}
......
......@@ -34,6 +34,10 @@ public class Games.RetroRunner : Object, Runner {
get { return _media_set; }
}
internal ControllerSet? controller_set {
get { return input_manager.controller_set; }
}
private Retro.Core core;
private Retro.CairoDisplay video;
private Retro.PaPlayer audio;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment