You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: backends/imgui_impl_sdl.cpp
+9-4
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,7 @@
21
21
// CHANGELOG
22
22
// (minor and older changes stripped away, please see git history for details)
23
23
// 2022-XX-XX: Platform: Added support for multiple windows via the ImGuiPlatformIO interface.
24
+
// 2022-09-26: Inputs: Disable SDL 2.0.22 new "auto capture" (SDL_HINT_MOUSE_AUTO_CAPTURE) which prevents drag and drop across windows for multi-viewport support + don't capture when drag and dropping. (#5710)
24
25
// 2022-09-26: Inputs: Renamed ImGuiKey_ModXXX introduced in 1.87 to ImGuiMod_XXX (old names still supported).
25
26
// 2022-03-22: Inputs: Fix mouse position issues when dragging outside of boundaries. SDL_CaptureMouse() erroneously still gives out LEAVE events when hovering OS decorations.
26
27
// 2022-03-22: Inputs: Added support for extra mouse buttons (SDL_BUTTON_X1/SDL_BUTTON_X2).
#define IMGUI_DEMO_MARKER(section) do { if (GImGuiDemoMarkerCallback != NULL) GImGuiDemoMarkerCallback(__FILE__, __LINE__, section, GImGuiDemoMarkerCallbackUserData); } while (0)
227
243
228
-
// Helper to display basic user controls.
229
-
void ImGui::ShowUserGuide()
230
-
{
231
-
ImGuiIO& io = ImGui::GetIO();
232
-
ImGui::BulletText("Double-click on title bar to collapse window.");
233
-
ImGui::BulletText(
234
-
"Click and drag on lower corner to resize window\n"
235
-
"(double-click to auto fit window to its contents).");
236
-
ImGui::BulletText("CTRL+Click on a slider or drag box to input value as text.");
237
-
ImGui::BulletText("TAB/SHIFT+TAB to cycle through keyboard editable fields.");
238
-
ImGui::BulletText("CTRL+Tab to select a window.");
239
-
if (io.FontAllowUserScaling)
240
-
ImGui::BulletText("CTRL+Mouse Wheel to zoom window contents.");
241
-
ImGui::BulletText("While inputing text:\n");
242
-
ImGui::Indent();
243
-
ImGui::BulletText("CTRL+Left/Right to word jump.");
244
-
ImGui::BulletText("CTRL+A or double-click to select all.");
245
-
ImGui::BulletText("CTRL+X/C/V to use clipboard cut/copy/paste.");
if (show_app_main_menu_bar) ShowExampleAppMainMenuBar();
306
282
if (show_app_dockspace) ShowExampleAppDockSpace(&show_app_dockspace); // Process the Docking app first, as explicit DockSpace() nodes needs to be submitted early (read comments near the DockSpace function)
307
283
if (show_app_documents) ShowExampleAppDocuments(&show_app_documents); // Process the Document app next, as it may also use a DockSpace()
308
-
309
284
if (show_app_console) ShowExampleAppConsole(&show_app_console);
310
285
if (show_app_log) ShowExampleAppLog(&show_app_log);
311
286
if (show_app_layout) ShowExampleAppLayout(&show_app_layout);
0 commit comments