mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Config: Port WiiKeyboard setting to new config system.
This commit is contained in:
@ -714,14 +714,14 @@ void Settings::SetSDCardInserted(bool inserted)
|
||||
|
||||
bool Settings::IsUSBKeyboardConnected() const
|
||||
{
|
||||
return SConfig::GetInstance().m_WiiKeyboard;
|
||||
return Config::Get(Config::MAIN_WII_KEYBOARD);
|
||||
}
|
||||
|
||||
void Settings::SetUSBKeyboardConnected(bool connected)
|
||||
{
|
||||
if (IsUSBKeyboardConnected() != connected)
|
||||
{
|
||||
SConfig::GetInstance().m_WiiKeyboard = connected;
|
||||
Config::SetBaseOrCurrent(Config::MAIN_WII_KEYBOARD, connected);
|
||||
emit USBKeyboardConnectionChanged(connected);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user