Added flag showing whether the GUI wants text input

Conflicts:
	imgui.cpp
This commit is contained in:
Borislav Stanimirov
2015-08-23 22:52:47 +03:00
committed by ocornut
parent 7eca754094
commit 73917115a8
4 changed files with 16 additions and 4 deletions

View File

@ -394,6 +394,7 @@ struct ImGuiState
float FramerateSecPerFrameAccum;
bool CaptureMouseNextFrame; // explicit capture via CaptureInputs() sets those flags
bool CaptureKeyboardNextFrame;
bool WantInputCharactersNextFrame;
char TempBuffer[1024*3+1]; // temporary text buffer
ImGuiState()
@ -456,7 +457,7 @@ struct ImGuiState
memset(FramerateSecPerFrame, 0, sizeof(FramerateSecPerFrame));
FramerateSecPerFrameIdx = 0;
FramerateSecPerFrameAccum = 0.0f;
CaptureMouseNextFrame = CaptureKeyboardNextFrame = false;
CaptureMouseNextFrame = CaptureKeyboardNextFrame = WantInputCharactersNextFrame = false;
}
};