| 762 | } |
| 763 | |
| 764 | SDL_Scancode StringToSDLScancode(const std::string& s) { |
| 765 | std::map<std::string, SDL_Scancode>::const_iterator iter = str_to_key_map.find(UTF8ToLower(s)); |
| 766 | if (iter != str_to_key_map.end()) { |
| 767 | return iter->second; |
| 768 | } else { |
| 769 | return (SDL_Scancode)SDL_SCANCODE_SYSREQ; |
| 770 | } |
| 771 | } |
| 772 | |
| 773 | const char* SDLScancodeToString(SDL_Scancode key) { |
| 774 | std::map<SDL_Scancode, const char*>::const_iterator iter = key_to_str_map.find(key); |
no test coverage detected