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

Method TextEntryEnable

olcPixelGameEngine.h:4365–4377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4363
4364
4365 void PixelGameEngine::TextEntryEnable(const bool bEnable, const std::string& sText)
4366 {
4367 if (bEnable)
4368 {
4369 nTextEntryCursor = int32_t(sText.size());
4370 sTextEntryString = sText;
4371 bTextEntryEnable = true;
4372 }
4373 else
4374 {
4375 bTextEntryEnable = false;
4376 }
4377 }
4378
4379 std::string PixelGameEngine::TextEntryGetString() const
4380 {

Callers 1

UpdateMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected