25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
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. };