Add in ability to redefine keybinds. Keybinds currently do not translate to actual key controls (?) Replaced all 2023 copyright references with 2024, fix copyright symbols.

Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
This commit is contained in:
Nic0Nic0Nii
2024-02-06 20:57:22 +00:00
co-authored by AMay
parent ef63a07f5c
commit 1f244777c9
65 changed files with 114 additions and 176 deletions
+7 -3
View File
@@ -539,8 +539,12 @@ const InputEngageGroup InputEngageGroup::operator=(const InputEngageGroup&rhs){
void InputGroup::RemovePrimaryKeybind(InputType type){
std::erase(keyOrder.front());
keyOrder.erase(keyOrder.begin());
}
void InputGroup::AddPrimaryKeybind(InputType type){
void InputGroup::AddPrimaryKeybind(Input key){
keyOrder.insert(keyOrder.begin(),{key.GetType(),key.key});
}
void InputGroup::SetNewPrimaryKeybind(Input key){
RemovePrimaryKeybind(key.GetType());
AddPrimaryKeybind(key);
}