First commit

This commit is contained in:
nastys
2019-07-06 22:51:56 +02:00
commit 321ecdf8b7
162 changed files with 19606 additions and 0 deletions
@@ -0,0 +1,13 @@
#include "KeyStringHash.h"
#include <filesystem>
namespace TLAC::Input::KeyConfig
{
size_t KeyStringHash::operator()(const KeyString& key) const
{
std::string ret = key.value;
std::transform(ret.begin(), ret.end(), ret.begin(),
[](unsigned char c) { return std::tolower(c, std::locale()); });
return std::hash<std::string>()(ret);
}
}