| 1311 | } |
| 1312 | |
| 1313 | std::wstring InputManager::GetKeyDescription(const wchar_t character) { |
| 1314 | std::wstring description = L""; |
| 1315 | description.append(1, character); |
| 1316 | std::map<wchar_t, std::wstring>::const_iterator it = this->key_descriptions_.find(character); |
| 1317 | if (it != this->key_descriptions_.end()) { |
| 1318 | description = it->second; |
| 1319 | } |
| 1320 | return description; |
| 1321 | } |
| 1322 | |
| 1323 | void InputManager::SetupKeyDescriptions() { |
| 1324 | this->key_descriptions_[WD_KEY_NULL] = L"Unidentified"; |
no test coverage detected