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

Method ConvertKeycode

olcPixelGameEngine.h:5087–5095  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5085 }
5086
5087 olc::Key PixelGameEngine::ConvertKeycode(const int keycode) const
5088 {
5089 if (mapKeys.count(size_t(keycode)) > 0)
5090 {
5091 return mapKeys.at(keycode);
5092 }
5093
5094 return olc::Key::NONE;
5095 }
5096
5097 const std::string PixelGameEngine::GetKeySymbol(const olc::Key pgekey, const bool modShift, const bool modCtrl, const bool modAlt) const
5098 {

Callers

nothing calls this directly

Calls 1

countMethod · 0.80

Tested by

no test coverage detected