Rename Keymap_Switch() to SwitchKeymap()
This commit is contained in:
@@ -13,7 +13,7 @@ uint8_t AllKeymapsCount;
|
|||||||
uint8_t DefaultKeymapIndex;
|
uint8_t DefaultKeymapIndex;
|
||||||
uint8_t CurrentKeymapIndex = 0;
|
uint8_t CurrentKeymapIndex = 0;
|
||||||
|
|
||||||
void Keymaps_Switch(uint8_t index)
|
void SwitchKeymap(uint8_t index)
|
||||||
{
|
{
|
||||||
CurrentKeymapIndex = index;
|
CurrentKeymapIndex = index;
|
||||||
ValidatedUserConfigBuffer.offset = AllKeymaps[index].offset;
|
ValidatedUserConfigBuffer.offset = AllKeymaps[index].offset;
|
||||||
|
|||||||
@@ -29,6 +29,6 @@
|
|||||||
|
|
||||||
// Functions:
|
// Functions:
|
||||||
|
|
||||||
void Keymaps_Switch(uint8_t index);
|
void SwitchKeymap(uint8_t index);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -140,11 +140,11 @@ void ApplyConfig(void)
|
|||||||
if (memcmp(oldKeymapAbbreviation, AllKeymaps[i].abbreviation, oldKeymapAbbreviationLen)) {
|
if (memcmp(oldKeymapAbbreviation, AllKeymaps[i].abbreviation, oldKeymapAbbreviationLen)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
Keymaps_Switch(i);
|
SwitchKeymap(i);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Keymaps_Switch(DefaultKeymapIndex);
|
SwitchKeymap(DefaultKeymapIndex);
|
||||||
}
|
}
|
||||||
|
|
||||||
void setLedPwm(void)
|
void setLedPwm(void)
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ void UpdateActiveUsbReports(void)
|
|||||||
processMouseAction(action);
|
processMouseAction(action);
|
||||||
break;
|
break;
|
||||||
case KeyActionType_SwitchKeymap:
|
case KeyActionType_SwitchKeymap:
|
||||||
Keymaps_Switch(action.switchKeymap.keymapId);
|
SwitchKeymap(action.switchKeymap.keymapId);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user