···90 return opengloves_alpha_encoding_key_characters.find(character) != std::string::npos;
91}
9293-static const std::map<std::string, int> opengloves_alpha_encoding_key_string{
94 {"A", OPENGLOVES_ALPHA_ENCODING_FinThumb}, // whole thumb curl (default curl value for thumb joints)
95 {"(AB)", OPENGLOVES_ALPHA_ENCODING_FinSplayThumb}, // whole thumb splay thumb joint 3 (doesn't exist, but keeps
96 // consistency with the other fingers
···180181 // Even if the value is empty we still want to use the key, it means that we have a button that
182 // is pressed (it only appears in the packet if it is)
183- if (opengloves_alpha_encoding_key_string.find(key) !=
184- opengloves_alpha_encoding_key_string.end())
185- result.insert_or_assign(opengloves_alpha_encoding_key_string.at(key), value);
186 else
187 U_LOG_W("Unable to insert key: %s into input map as it was not found", key.c_str());
188 } else
···90 return opengloves_alpha_encoding_key_characters.find(character) != std::string::npos;
91}
9293+static const std::map<std::string, int> opengloves_alpha_encoding_input_key_string{
94 {"A", OPENGLOVES_ALPHA_ENCODING_FinThumb}, // whole thumb curl (default curl value for thumb joints)
95 {"(AB)", OPENGLOVES_ALPHA_ENCODING_FinSplayThumb}, // whole thumb splay thumb joint 3 (doesn't exist, but keeps
96 // consistency with the other fingers
···180181 // Even if the value is empty we still want to use the key, it means that we have a button that
182 // is pressed (it only appears in the packet if it is)
183+ if (opengloves_alpha_encoding_input_key_string.find(key) !=
184+ opengloves_alpha_encoding_input_key_string.end())
185+ result.insert_or_assign(opengloves_alpha_encoding_input_key_string.at(key), value);
186 else
187 U_LOG_W("Unable to insert key: %s into input map as it was not found", key.c_str());
188 } else