mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-28 23:38:49 +00:00
Hotkeys: Add "Toggle USB Keyboard" hotkey
This commit is contained in:
parent
14e156c292
commit
e3f36b74c5
6 changed files with 33 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue