public MainForm() { InitializeComponent(); sf4memory = new SF4Memory(chkSteamVersion.Checked); sf4control = new SF4Record(sf4memory, TPInputLibrary.SF4InputHandler.InputType.XBoxController); sf4control.OnRecordInput += RecordedInputUpdate; sf4control.OnResetInput += ResetInput; }
public MainForm() { InitializeComponent(); sf4memory = new SF4Memory(chkSteamVersion.Checked); sf4control = new SF4Record(sf4memory); sf4control.OnRecordInput += RecordedInputUpdate; sf4control.OnResetInput += ResetInput; }
/// <summary> /// Initializes a new instance of the <see cref="GameViewModel"/> class. /// </summary> /// <param name="events"> /// The events aggregator. /// </param> public GameViewModel(IEventAggregator events) { _events = events; _events.Subscribe(this); _isMainWindowEnabled = true; _sf4Memory = SF4Memory.Instance; _inputResolver = InputResolver.Instance; Execute.OnUIThread( () => { _panel = new Panel(); CreateGameProcess(_panel.Handle); }); }
/// <summary> /// Initializes a new instance of the <see cref="GameViewModel"/> class. /// </summary> /// <param name="events">The events aggregator.</param> /// <param name="gameExecuteablePath">The game executable path.</param> public GameViewModel(IEventAggregator events, string gameExecuteablePath) { _events = events; _events.Subscribe(this); _gameExecuteablePath = Settings.Default.Properties["SSFIVLocation"].DefaultValue.ToString(); _isMainWindowEnabled = true; _sf4Memory = new SF4Memory(true); _inputResolver = new InputResolver(_sf4Memory); Execute.OnUIThread( () => { _panel = new System.Windows.Forms.Panel(); CreateGameProcess(_panel.Handle); }); }