Hotkeys: Add "Toggle USB Keyboard" hotkey

This commit is contained in:
spycrab
2018-08-02 12:55:30 +02:00
parent 14e156c292
commit e3f36b74c5
6 changed files with 33 additions and 5 deletions

View File

@ -238,6 +238,12 @@ void HotkeyScheduler::Run()
if (wiimote_id > -1)
emit ConnectWiiRemote(wiimote_id);
if (IsHotkey(HK_TOGGLE_USB_KEYBOARD))
{
Settings::Instance().SetUSBKeyboardConnected(
!Settings::Instance().IsUSBKeyboardConnected());
}
}
if (IsHotkey(HK_PREV_WIIMOTE_PROFILE_1))