127 Commits (5717f0a33e53ff4e68a90b1cb06fde3ed7d54da8)

Author SHA1 Message Date
omar 4f7bf7e96a Backends: Win32: Added support for #define IMGUI_IMPL_WIN32_DISABLE_GAMEPAD and IMGUI_IMPL_WIN32_DISABLE_LINKING_XINPUT. (#2716) ago%!(EXTRA string=5 years)
omar 8342e5b91a Amend previous commits (added ImGuiMouseCursor_NotAllowed enum + new cursors in GLFW 3.4) ago%!(EXTRA string=5 years)
Rokas Kupstys 945a509773 Implement ImGuiMouseCursor_NotAllowed mouse cursor. ago%!(EXTRA string=5 years)
omar f0348ddffc Amend 0f86116, renamed to ImGuiKey_KeyPadEnter Changelog.. (#2677, #2005) ago%!(EXTRA string=6 years)
Aaron Cooper 0f86116a69 Adding an ImGuiKey 'ImGuiKey_EnterSecondary' to support platforms that differentiate the enter (return key) and the numpad enter key. ago%!(EXTRA string=6 years)
omar adbbd17cb6 Addendum to #2635. Add support for multi-viewports in SDL+DX!! example. making all Win32-centric back-ends handle PlatformHandleRaw. Using the field to use/store the HWND for internal purpose in SDL/GLFW back-ends. (#1542) ago%!(EXTRA string=6 years)
omar ef13d95466 IO: changed AddInputCharacter(unsigned short c) signature to AddInputCharacter(unsigned int c). ago%!(EXTRA string=6 years)
omar 6789ea3482 Examples: SDL: Gamepad support minor amend. Fixes ImGuiBackendFlags_HasGamepad not being set. Enable in Emscripten demo. Tweaks. (#2509, #2484). ago%!(EXTRA string=6 years)
Bruce Mitchener b5d57a6615 Fix typos. (#2413) ago%!(EXTRA string=6 years)
omar 93d1179805 Examples: Extracted gamepad code into ImGui_ImplGlfw_UpdateGamepads(). Renamed matching Win32 function for consistency. ago%!(EXTRA string=6 years)
omar b46076458c Examples: Win32: Removed unused code left-over from merge e9c625a1dc ago%!(EXTRA string=6 years)
omar 03b0266b59 Examples: Made imgui_impl_win32 drag gdi32.lib for GetDeviceCaps(). (#2327) ago%!(EXTRA string=6 years)
omar e1143377c2 Viewport: Added ImGuiViewportFlags_NoFocusOnClick + support in imgui_impl_win32. Made windows with no decoration always set the _NoFocus flags. (#1542, #2117) ago%!(EXTRA string=6 years)
omar 2c38b32db1 Removed trailing spaces (#2038, #2299) ago%!(EXTRA string=6 years)
omar b8020032f9 Examples: Win32: Added support for mouse buttons 4 and 5 via WM_XBUTTON* messages. (#2264) ago%!(EXTRA string=6 years)
omar acdb4823dd Examples: Win32: Fix for older Windows SDK. ago%!(EXTRA string=6 years)
omar 872477548b Examples: Win32: Using IsChild() to be compatible with windows created within a parent. (#1951, #2087, #2156, #2232) ago%!(EXTRA string=6 years)
omar f435aa193b Examples: Win32: Added support for XInput games (if ImGuiConfigFlags_NavEnableGamepad is enabled). ago%!(EXTRA string=6 years)
omar 133f112af0 Examples: Win32: Using GetForegroundWindow() instead of GetActiveWindow() to be compatible with windows created in a different thread. (#1951, #2087, #2156, #2232) [many people] ago%!(EXTRA string=6 years)
omar 0cabe4dedf Viewport: Added ImGuiWindowClass / SetNextWindowClass() (concept imported from Docking ImGuiDockFamily), which currently allows to overwrite viewport flags on a per-window basis. Exposed FindViewportByID(). Win32: Support for ParentViewportId. (#1542) ago%!(EXTRA string=6 years)
omar cfcad42b89 Viewport: Win32: Workaround to the fact that ::WindowFromPoint() seems to return Windows using ImGuiViewportFlags_NoInputs / HTTRANSPARENT when dragging nearby the platform title bar. This is to allow using platform decoration. I don't understand this well atm. (#1542) ago%!(EXTRA string=6 years)
omar 4a6f95acc8 Viewport: Added Platform_UpdateWindow hook for general purpose: Rework Win32 code to reflect viewport flags changes into Win32 while the window is active. ago%!(EXTRA string=6 years)
omar a9a60a24c1 Tweaked asserts ago%!(EXTRA string=6 years)
omar 5d20da1b36 Viewport, DPI: Now using DpiScale from the ImGuiPlatformMonitor array instead of calling Platform_GetWindowDpiScale() before the platform window creation. Might even tentatively see if things work out without Platform_GetWindowDpiScale. (#1676) ago%!(EXTRA string=6 years)
omar f3a0b17bb8 Viewport: Win32, GLFW, SDL: Clarified back-ends by using global mouse position direction. GLFW: disabled io.MouseHoveredViewport setting under Mac/Linux. (#1542, #2117) + various comments. ago%!(EXTRA string=6 years)
omar 7658035e5a About, IO: Added io.BackendPlatformName, io.BackendRendererName for informational/QA purpose. ago%!(EXTRA string=7 years)
omar a423f032ee About, IO: Added io.BackendPlatformName, io.BackendRendererName for informational/QA purpose. ago%!(EXTRA string=7 years)
omar d8ab2c1ac9 Viewport: Added support for minimized window which caused problem when ImGuiBackendFlags_HasMouseHoveredViewport was not supported. (#1542) + todo ago%!(EXTRA string=7 years)
omar 9ee86f22b7 Examples: Win32: Handle UTf-8 in platform window title setting. (#2164) ago%!(EXTRA string=7 years)
omar 7c3b9172ad Examples: Referring to missing gamepad support in back-end that are missing it. ago%!(EXTRA string=7 years)
omar 1afd29d382 Examples: Using "dear imgui" terminology in all examples headers/comments + fix minor typo. ago%!(EXTRA string=7 years)
Ryan Crandall 34203d5008 imgui_impl_win32: Don't redefine WIN32_LEAN_AND_MEAN if already defined (#2014) ago%!(EXTRA string=7 years)
omar 7b4fbf4301 Viewport: Removed the need for the back-end to fill io.MousePosViewport, it seems unnecessary at this point. (#1542) ago%!(EXTRA string=7 years)
omar c4e34aaace Examples: Comments to clarify how the keyboard data is indexed. ago%!(EXTRA string=7 years)
omar 62b3d7c51e Fixed software Hand cursor from not actually working. Fixed demo from crashing. Fixed typo and extraneous trailing space. Added Changelogs. (#1913, #1914) ago%!(EXTRA string=7 years)
Aiekick ecd9a223e3 add hand cursor support (+11 squashed commit) ago%!(EXTRA string=7 years)
omar cac4c3f9b8 Examples: The functions in imgui_impl_xxx.cpp are prefixed with IMGUI_IMPL_API (which defaults to IMGUI_API) to facilitate some uses. (#1888) + Comments in imgui.h ago%!(EXTRA string=7 years)
omar c44a4bed84 Examples: Fixed bindings to use ImGuiMouseCursor_COUNT instead of old name ImGuiMouseCursor_Count_ so they can compile with IMGUI_DISABLE_OBSOLETE_FUNCTIONS. (#1887) ago%!(EXTRA string=7 years)
omar bdb3d72d37 Examples: Win32: Fixed handling of mouse wheel messages to support finer position messages (typically sent by track-pads). (#1874) ago%!(EXTRA string=7 years)
omar 7acb46bec5 Examples: Comments to make ImGuiConfigFlags_NoMouseCursorChange more visible (#1027). + Allegro5: Added support for ImGuiConfigFlags_NoMouseCursorChange flag. ago%!(EXTRA string=7 years)
omar 85f9694bd4 Big example binding refactor (manually imported from Viewport branch, stripped out of Viewport code). (#1870) ago%!(EXTRA string=7 years)
omar 8c374512fd Examples, Platform: Removed the call to ImGui::NewFrame() from the platform _NewFrame() function e.g. ImGui_ImplWin32_NewFrame(), ImGui_ImplSDL2_NewFrame(), ImGui_ImplGlfw_NewFrame(), etc. Moved to main.cpp for consistency. (#1542) ago%!(EXTRA string=7 years)
omar 090eb437ed Viewport, Platform: Cleaned up xxx_UpdateMouseCursor() functions to make them more consistent. (#1542) ago%!(EXTRA string=7 years)
omar d574604a5d Viewport, Platform: Win32: Fixed handling of io.WantSetMousePos + added a bunch of comments. GLFW, SDL2: Added handling of io.WantSetMousePos. (#1542) ago%!(EXTRA string=7 years)
omar 6eacddb50f Viewport: Changed Monitor field to use Pos+Size (more consistent), changed FullMin,FullMax to MainPos,MainSize. Made main viewport accessible in PlatformIO on first frame. Fixed casing of ImGuiViewportFlags_TopMost flag. (#1542) ago%!(EXTRA string=7 years)
omar cd51f37fc0 Viewport, Platform: Refresh monitor list (win32, glfw) + avoid calling GetWindowFocus before platform window creation to not require of backend to null-check things inconsistently. (#1542) ago%!(EXTRA string=7 years)
omar da70c837da Viewport: Removed unnecessary fields (now that the coordinate system is consistent accross viewports): MouseRefPrevViewport, MouseClickedPosViewportId. (#1542) ago%!(EXTRA string=7 years)
omar 7a41e0b1ea Platform: Added platform_io.Platform_SetWindowFocus, Platform_GetWindowFocus function wrappers (unused yet). Exact specs tbd because our simplified concept of focus doesn't necessary match the more complex OS native concepts. (#1542) ago%!(EXTRA string=7 years)
omar e3e4b7bdf5 Viewport: Fixed mouse hover flicker on mouse button release frame after moving a window. (#1542) ago%!(EXTRA string=7 years)
omar cb78e62df9 Viewport, Platform: Fixed IME positioning for multi-viewport. Moved API from ImGuiIO to ImGuiPlatformIO. Because it is extremely unlikely to people redefined this API manually the moving-forward-breakage is ok. (#1542) ago%!(EXTRA string=7 years)