mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-13 00:58:29 +02:00
Hotkeys: Add "Toggle USB Keyboard" hotkey
This commit is contained in:
@ -520,3 +520,17 @@ void Settings::SetBatchModeEnabled(bool batch)
|
||||
{
|
||||
m_batch = batch;
|
||||
}
|
||||
|
||||
bool Settings::IsUSBKeyboardConnected() const
|
||||
{
|
||||
return SConfig::GetInstance().m_WiiKeyboard;
|
||||
}
|
||||
|
||||
void Settings::SetUSBKeyboardConnected(bool connected)
|
||||
{
|
||||
if (IsUSBKeyboardConnected() != connected)
|
||||
{
|
||||
SConfig::GetInstance().m_WiiKeyboard = connected;
|
||||
emit USBKeyboardConnectionChanged(connected);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user