MCPcopy Create free account
hub / github.com/TASEmulators/fceux / FKB_CheckShortcutConflicts

Function FKB_CheckShortcutConflicts

src/drivers/Qt/input.cpp:740–765  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

738}
739
740static void FKB_CheckShortcutConflicts(void)
741{
742 bool fkbActv;
743 QShortcut *shortcut;
744
745 fkbActv = g_fkbEnabled && (CurInputType[2] == SIFC_FKB);
746
747 for (int i = 0; i < HK_MAX; i++)
748 {
749 shortcut = Hotkeys[i].getShortcut();
750
751 if (i == HK_FKB_ENABLE)
752 {
753 if (shortcut)
754 {
755 shortcut->setEnabled(true);
756 }
757 continue;
758 }
759
760 if (shortcut)
761 {
762 shortcut->setEnabled(!fkbActv);
763 }
764 }
765}
766
767void toggleFamilyKeyboardFunc(void)
768{

Callers 1

toggleFamilyKeyboardFuncFunction · 0.85

Calls 1

getShortcutMethod · 0.80

Tested by

no test coverage detected