mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-01-09 12:19:12 +00:00
fix: check if keyboard state is null before checking if button is pressed
This commit is contained in:
parent
b4d055e4e9
commit
cfcb9921bc
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ namespace Ryujinx.Input.Assigner
|
|||
|
||||
public bool ShouldCancel()
|
||||
{
|
||||
return _keyboardState.IsPressed(Key.Escape);
|
||||
return _keyboardState?.IsPressed(Key.Escape) == true;
|
||||
}
|
||||
|
||||
public ButtonValue? GetPressedButton()
|
||||
|
|
Loading…
Reference in a new issue