static bool32 Hacko = false; static int32 EffectSel = -1; // I'm using the filter's grep functionality to sort the effects for us // (probably severely suboptimal), so I'm just using this callback function to // signal back to our code that tab has been pressed in the text edit. static int EffectConsoleCallback(ImGuiInputTextCallbackData* data) { if (data->EventFlag == ImGuiInputTextFlags_CallbackCompletion) { Hacko = true; } return 0; }