MCPcopy Create free account
hub / github.com/OneLoneCoder/olcPixelGameEngine / GetKeySymbol

Method GetKeySymbol

olcPixelGameEngine.h:5097–5109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 1

countMethod · 0.80

Tested by

no test coverage detected