Can't use conditional here as _profileWindow doesn't exist it non-profiling build
This commit is contained in:
parent
f0626920f2
commit
f077ca7948
2 changed files with 3 additions and 2 deletions
|
@ -47,7 +47,6 @@ namespace Ryujinx.Profiler.UI
|
|||
_window = null;
|
||||
}
|
||||
|
||||
[Conditional("USE_PROFILING")]
|
||||
public void UpdateKeyInput(KeyboardState keyboard)
|
||||
{
|
||||
if (Profile.Controls.TogglePressed(keyboard))
|
||||
|
|
|
@ -152,9 +152,11 @@ namespace Ryujinx
|
|||
if (_keyboard.HasValue)
|
||||
{
|
||||
KeyboardState keyboard = _keyboard.Value;
|
||||
|
||||
|
||||
#if USE_PROFILING
|
||||
// Profiler input, lets the profiler get access to the main windows keyboard state
|
||||
_profileWindow.UpdateKeyInput(keyboard);
|
||||
#endif
|
||||
|
||||
// Normal Input
|
||||
currentButton = Configuration.Instance.KeyboardControls.GetButtons(keyboard);
|
||||
|
|
Loading…
Add table
Reference in a new issue