| 5095 | } |
| 5096 | |
| 5097 | const std::string PixelGameEngine::GetKeySymbol(const olc::Key pgekey, const bool modShift, const bool modCtrl, const bool modAlt) const |
| 5098 | { |
| 5099 | if (vKeyboardMap.count(pgekey) > 0) |
| 5100 | { |
| 5101 | const auto& [sym, sym_s, sym_c, sym_a] = vKeyboardMap.at(pgekey); |
| 5102 | if (modShift) return sym_s; |
| 5103 | if (modCtrl) return sym_c; |
| 5104 | if (modAlt) return sym_a; |
| 5105 | return sym; |
| 5106 | } |
| 5107 | else |
| 5108 | return ""; |
| 5109 | } |
| 5110 | |
| 5111 | void PixelGameEngine::pgex_Register(olc::PGEX* pgex) |
| 5112 | { |