You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 line
452 B

  1. #pragma once
  2. #include <algorithm>
  3. #include <vector>
  4. #include <unordered_map>
  5. class LuaUtility
  6. {
  7. public:
  8. LuaUtility();
  9. static bool IsKeyPressed(std::string keyName);
  10. static bool IsKeyPressed(std::string keyName, std::string keyName2);
  11. static bool IsKeyPressed(std::string keyName, std::string keyName2, std::string keyName3);
  12. static bool ContainsKey(std::string keyName);
  13. private:
  14. static std::unordered_map<std::string, uint8_t> GetKeyMap();
  15. };