mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-06-03 19:09:15 +00:00
@@ -147,19 +147,19 @@ namespace Ryujinx.HLE.HOS.Applets
|
||||
|
||||
private bool IsKeyboardActive()
|
||||
{
|
||||
return _backgroundState >= InlineKeyboardState.Appearing && _backgroundState < InlineKeyboardState.Disappearing;
|
||||
return _backgroundState is >= InlineKeyboardState.Appearing and < InlineKeyboardState.Disappearing;
|
||||
}
|
||||
|
||||
private bool InputModeControllerEnabled()
|
||||
{
|
||||
return _inputMode == KeyboardInputMode.ControllerAndKeyboard ||
|
||||
_inputMode == KeyboardInputMode.ControllerOnly;
|
||||
return _inputMode is KeyboardInputMode.ControllerAndKeyboard or
|
||||
KeyboardInputMode.ControllerOnly;
|
||||
}
|
||||
|
||||
private bool InputModeTypingEnabled()
|
||||
{
|
||||
return _inputMode == KeyboardInputMode.ControllerAndKeyboard ||
|
||||
_inputMode == KeyboardInputMode.KeyboardOnly;
|
||||
return _inputMode is KeyboardInputMode.ControllerAndKeyboard or
|
||||
KeyboardInputMode.KeyboardOnly;
|
||||
}
|
||||
|
||||
private void AdvanceInputMode()
|
||||
@@ -365,6 +365,7 @@ namespace Ryujinx.HLE.HOS.Applets
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
_interactiveSession.Push(InlineResponses.ReleasedUserWordInfo(_backgroundState));
|
||||
break;
|
||||
case InlineKeyboardRequest.SetCustomizeDic:
|
||||
@@ -378,6 +379,7 @@ namespace Ryujinx.HLE.HOS.Applets
|
||||
{
|
||||
_keyboardBackgroundDic = reader.ReadStruct<SoftwareKeyboardCustomizeDic>();
|
||||
}
|
||||
|
||||
break;
|
||||
case InlineKeyboardRequest.SetCustomizedDictionaries:
|
||||
// Read the custom dictionaries data.
|
||||
@@ -390,6 +392,7 @@ namespace Ryujinx.HLE.HOS.Applets
|
||||
{
|
||||
_keyboardBackgroundDictSet = reader.ReadStruct<SoftwareKeyboardDictSet>();
|
||||
}
|
||||
|
||||
break;
|
||||
case InlineKeyboardRequest.Calc:
|
||||
// The Calc request is used to communicate configuration changes and commands to the keyboard.
|
||||
|
||||
Reference in New Issue
Block a user