input: Fixes TouchPoint wrong attribute (#2390)
This commit is contained in:
parent
c71ae9c85c
commit
d6b2ac33aa
6 changed files with 71 additions and 32 deletions
|
@ -74,6 +74,8 @@ namespace Ryujinx.Ui
|
|||
public RendererWidgetBase RendererWidget;
|
||||
public InputManager InputManager;
|
||||
|
||||
public bool IsFocused;
|
||||
|
||||
private static bool UseVulkan = false;
|
||||
|
||||
#pragma warning disable CS0169, CS0649, IDE0044
|
||||
|
@ -157,6 +159,8 @@ namespace Ryujinx.Ui
|
|||
|
||||
WindowStateEvent += WindowStateEvent_Changed;
|
||||
DeleteEvent += Window_Close;
|
||||
FocusInEvent += MainWindow_FocusInEvent;
|
||||
FocusOutEvent += MainWindow_FocusOutEvent;
|
||||
|
||||
_applicationLibrary.ApplicationAdded += Application_Added;
|
||||
_applicationLibrary.ApplicationCountUpdated += ApplicationCount_Updated;
|
||||
|
@ -272,6 +276,16 @@ namespace Ryujinx.Ui
|
|||
_fullScreen.Label = args.Event.NewWindowState.HasFlag(Gdk.WindowState.Fullscreen) ? "Exit Fullscreen" : "Enter Fullscreen";
|
||||
}
|
||||
|
||||
private void MainWindow_FocusOutEvent(object o, FocusOutEventArgs args)
|
||||
{
|
||||
IsFocused = false;
|
||||
}
|
||||
|
||||
private void MainWindow_FocusInEvent(object o, FocusInEventArgs args)
|
||||
{
|
||||
IsFocused = true;
|
||||
}
|
||||
|
||||
private void UpdateColumns()
|
||||
{
|
||||
foreach (TreeViewColumn column in _gameTable.Columns)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue