misc: Clean up of CS project after Avalonia merge (#3340)

This reformat Avalonia csproj file, remove unused deps and reajust
Ryujinx csproj a bit after some other changes

Also updated OpenTK.Graphics
This commit is contained in:
Mary 2022-05-15 16:02:15 +02:00 committed by GitHub
parent 3551c18902
commit 7bc4971cf9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 172 additions and 169 deletions

View file

@ -4,11 +4,9 @@ using Ryujinx.Ava.Common.Locale;
using Ryujinx.Input;
using System;
using System.Collections.Generic;
using System.Linq;
using AvaKey = Avalonia.Input.Key;
using Key = Ryujinx.Input.Key;
using TextInputEventArgs = OpenTK.Windowing.Common.TextInputEventArgs;
namespace Ryujinx.Ava.Input
{
@ -20,7 +18,7 @@ namespace Ryujinx.Ava.Input
public event EventHandler<KeyEventArgs> KeyPressed;
public event EventHandler<KeyEventArgs> KeyRelease;
public event EventHandler<TextInputEventArgs> TextInput;
public event EventHandler<string> TextInput;
public string DriverName => "Avalonia";
@ -36,9 +34,9 @@ namespace Ryujinx.Ava.Input
_control.TextInput += Control_TextInput;
}
private void Control_TextInput(object sender, Avalonia.Input.TextInputEventArgs e)
private void Control_TextInput(object sender, TextInputEventArgs e)
{
TextInput?.Invoke(this, new TextInputEventArgs(e.Text.First()));
TextInput?.Invoke(this, e.Text);
}
public event Action<string> OnGamepadConnected