mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 04:08:55 +00:00
Config: Port WiiKeyboard setting to new config system.
This commit is contained in:
parent
f19cf1753b
commit
b2da738c81
5 changed files with 6 additions and 8 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue