Commit Graph

  • 40fd163a3b Backends: OpenGL3: Fix OpenGL ES2 includes on Apple systems. Rokas Kupstys 2022-02-02 10:38:37 +02:00
  • 2554b512c0 Backends: OSX: Forward keyDown/keyUp events to OS when unused by Dear ImGui. ocornut 2022-02-07 11:55:24 +01:00
  • c6cab1f352 Backends: SDL: Added SDL_Renderer* parameter to ImGui_ImplSDL2_InitForSDLRenderer(). Use SDL_GetRendererOutputSize() instead of SDL_GL_GetDrawableSize() when bound to a SDL_Renderer. (#4927) Clownacy 2022-01-22 13:55:03 +00:00
  • c39192ba64 Backends: SDL_Renderer: Fix texture atlas format on big-endian hardware (#4927) Clownacy 2022-01-30 22:42:21 +00:00
  • 31762a8173 Docking: fixed potential crash if a passthrough dock node is submitted without a child intermediate (currently not possible via API) ocornut 2022-02-03 12:04:11 +01:00
  • 5017602752 Backends: SDL: Amend 08350e5, multi-viewports mouse tracking works under Linux. (#4960) + Reword tests to help static analysis. ocornut 2022-02-03 11:49:36 +01:00
  • 37958ca1b5 Docking: Fixed CTRL+TAB back into a docked window not selecting menu layer when no item are on main layer. ocornut 2022-02-03 00:19:31 +01:00
  • 8eb8689391 Docking: Tabs use their own identifier (in order to make window->ID refer to whole window in test engine). Also prevents Tab ID from clashing with "" which was common. ocornut 2022-02-02 23:23:13 +01:00
  • c1ab3c406f Docking: Fixed size constraints not working on single window holding on a dock id (still doesn't work on docked windows). ocornut 2022-02-02 23:10:14 +01:00
  • d378e4088f Merge branch 'master' into docking ocornut 2022-02-01 15:46:42 +01:00
  • 43177324c0 Backends: GLFW: Fixed miss untranslation of keypad keys. (#4921, #452) ocornut 2022-02-01 15:27:10 +01:00
  • 6f73dbea80 TestEngine: submit window data to item system. ocornut 2022-02-01 15:02:14 +01:00
  • 35e197f413 TestEngine: fixed InvisibleButton() and ArrowButton() not calling the info macro. ocornut 2022-02-01 11:08:47 +01:00
  • 551ab84c2d Backends: OSX: Fix building with old Xcode versions. rokups 2022-01-31 14:02:22 +02:00
  • 422902dbda Correct typos (#4954, #4955), use IM_STATIC_ASSERT now that old pre-C++11 macro has been obsoleted. Clownacy 2022-01-27 17:52:00 +00:00
  • 08350e53e7 Backends: SDL: no support for ImGuiBackendFlags_HasMouseHoveredViewport under OSX/LInux (#4960) ocornut 2022-01-31 11:47:44 +01:00
  • 64d910ad37 Removed IMGUI_API from inline templated classes. (#4962) ocornut 2022-01-29 18:10:36 +01:00
  • 27004aca70 Revert moving ImGuiKeyModFlags to internal.h (amendc906c65) ocornut 2022-01-28 15:53:09 +01:00
  • 49e38a5b32 Revert moving ImGuiKeyModFlags to internal.h (amendc906c65) ocornut 2022-01-28 15:53:09 +01:00
  • d5f0d45ae4 Merge branch 'master' into docking + remove two _PopUnusedDrawCmd() from docking branch, following 718daa1 ocornut 2022-01-27 17:50:31 +01:00
  • 9def2b04d7 IO: Added simple (incomplete) filter for duplicates to reduce data spam. (#4921, #4858) ocornut 2022-01-27 17:18:29 +01:00
  • 5429f0f6b5 Backends: OSX, Android: Replaced AddKeyModsEvent() added by 790132a in favor of unified key enum system. (#4921, #4858) thedmd 2022-01-26 22:00:50 +01:00
  • c906c65cac (BREAKING) Replaced AddKeyModsEvent() added by 790132a in favor of unified key enum system. Backends: update most. (#4921, #4858) ocornut 2022-01-21 17:32:35 +01:00
  • 718daa153d Rendering: defer responsability of calling _PopUnusedDrawCmd() later so RenderDimmedBackgrounds()/RenderMouseCursor() don't need to deal with the side-effects (#4857, #4317) ocornut 2022-01-27 16:59:24 +01:00
  • 075f4ac661 Don't merge ImDrawCmd which have had their IdxOffset changed to not be sequential. Fixed CTRL+Tab into an empty window causing artefacts on the highlight rectangle due to bad reordering on ImDrawCmd. ocornut 2022-01-26 15:53:18 +01:00
  • 8555335935 Shallow alignment of ImGuiKey stuff + moving some in internals. Internals: add offset to ImBitArray<>, simpify ActiveIdUsingKeyInputMask. ocornut 2022-01-25 12:23:26 +01:00
  • f1a073186c Docking: Fixed a CTRL+TAB crash when aiming at an empty docked window. (#4792) ocornut 2022-01-25 17:28:43 +01:00
  • 08f3aa8972 Popups: Fix b17b2fb (#4936) ocornut 2022-01-24 14:14:34 +01:00
  • 4caf1e9b59 Backends: GLFW: fix ImGui_ImplGlfw_TranslateUntranslatedKey() for grave accents. (#456, #2625) + fix preceeding commit. ocornut 2022-01-24 13:45:47 +01:00
  • b17b2fb732 Popups: Fixed an issue when reopening a same popup multiple times would offset them by 1 pixel on the right. (#4936) ocornut 2022-01-24 13:13:38 +01:00
  • cda3db1449 Backends: SDL: Fixed key mapping for ImGuiKey_Menu (#4921) + misc typos (#4928) ocornut 2022-01-24 12:10:40 +01:00
  • dd6a44abb1 Fix compiler warning for Intel compiler (#4934) sergeyn 2022-01-24 12:09:02 +01:00
  • 4fb0c1f963 Correct some typos in FAQ.md (#4924) Clownacy 2022-01-21 23:03:09 +00:00
  • cff0342454 Internals: moved lines into a Inputs section. ocornut 2022-01-21 17:49:04 +01:00
  • c2db4c2462 Demo: draw a section of keyboard in "Inputs > Keyboard, Gamepad & Navigation state" to visualize keys. thedmd 2022-01-21 15:24:54 +01:00
  • 69b697378b Comments, tweaks. ocornut 2022-01-21 14:50:31 +01:00
  • 26e59c8742 Nav: Fixed gamepad navigation in wrapping popups not wrapping all the way. (#4365) ocornut 2022-01-21 14:41:34 +01:00
  • 3e0d6ec895 Merge branch 'master' into docking ocornut 2022-01-21 12:39:15 +01:00
  • 62d6be3747 IO: Removed ImGuiInputSource from public api for now, unnecessary. (#4858, #787) ocornut 2022-01-20 17:39:25 +01:00
  • 5ea47d9560 Backends: OSX: Add full gamepad support using io.AddKeyEvent(), io.AddKeyAnalogEvent(), stopped writing to io.NavInputs[]. (#4858, #787) thedmd 2022-01-19 21:43:48 +01:00
  • 39c3412f91 Backends: SDL: Add full gamepad support using io.AddKeyEvent(), io.AddKeyAnalogEvent(), stopped writing to io.NavInputs[]. (#4858, #787) ocornut 2022-01-20 17:12:28 +01:00
  • 3d85433748 Backends: GLFW: Add full gamepad support using io.AddKeyEvent(), io.AddKeyAnalogEvent(), stopped writing to io.NavInputs[]. (#4858, #787) ocornut 2022-01-20 17:12:22 +01:00
  • 9f8c599ca7 Backends: Win32: Add full gamepad support using io.AddKeyEvent(), io.AddKeyAnalogEvent(), stopped writing to io.NavInputs[]. (#4858, #787) ocornut 2022-01-20 17:12:11 +01:00
  • f33bb99821 IO: added AddKeyAnalogEvent() and support for ImGuiKey_GamepadXXXX. (#4858, #787) ocornut 2022-01-19 13:14:40 +01:00
  • 6e63fcaca3 Backends: Vulkan: Amends, fix miscast on 32-bit systems with the right ImTextureID=ImU64. (#914) ocornut 2022-01-20 16:56:29 +01:00
  • ceb26bac48 Backends: Vulkan: Added support for ImTextureID as VkDescriptorSet, amends. (#914) ocornut 2022-01-20 15:53:28 +01:00
  • 29f104319e Backends: Vulkan: Added support for ImTextureID as VkDescriptorSet, add ImGui_ImplVulkan_AddTexture(). (#914) Marcell Kiss 2022-01-20 15:32:49 +01:00
  • 19471da3fd Popups: Fix a crash when a new window is created after a modal on the same frame. (#4920) Rokas Kupstys 2022-01-20 13:52:19 +02:00
  • 7ad42ff431 IO: renamed io.ConfigInputEventQueue to io.ConfigInputTrickleEventQueue. (#4858) ocornut 2022-01-19 18:45:57 +01:00
  • 26d04c948f Tables: Fixed positioning of Sort icon on right-most column with some settings (not resizable + no borders). (#4918). ocornut 2022-01-19 18:03:36 +01:00
  • 97b1ffcb3b IO: Reorder enums, compact a little in header. Removed const from internal GetKeyData(). ocornut 2022-01-19 15:40:17 +01:00
  • 91ae56af45 Removed support for legacy arithmetic operators (+*/) when inputing text into a slider/drag. (#4917, #3184) ocornut 2022-01-19 15:10:42 +01:00
  • 673f5e588d IO: moved fields to put more focus on the new functions + update misc docs/references + update main.mm in Apple+Metal example (#4858) ocornut 2022-01-18 17:41:35 +01:00
  • e278277d53 IO: added AddMouseViewportEvent() + used in backends. ocornut 2022-01-18 17:24:59 +01:00
  • 1338eb31f7 Viewports: Relaxed specs for backend supporting ImGuiBackendFlags_HasMouseHoveredViewport. Backends: SDL: Added support for simplified HasMouseHoveredViewport. (#1542, #4665) ocornut 2022-01-18 16:59:19 +01:00
  • 007a427e0a Viewports: Fixed active InputText() from preventing viewports to merge. (#4212) ocornut 2022-01-18 16:04:25 +01:00
  • 8567a4cca3 Merge branch 'master' into docking ocornut 2022-01-17 18:16:55 +01:00
  • 90a6961638 IO: apply same flooring as UpdateMouseInputs() in dupe event processing. (#4858) + provision for test engine. ocornut 2022-01-17 18:10:51 +01:00
  • 7374b96f5c IO: Added input queue. (#4858, #2787, #1992, #3383, #2525, #1320) ocornut 2022-01-17 17:32:25 +01:00
  • b8e56dce83 IO: Added AddMousePosEvent(), AddMouseButtonEvent(), AddMouseWheelEvent() api + updated all Backends. (#4858) (input queue code will be next commit) thedmd 2022-01-17 17:22:37 +01:00
  • b6582a471a Backends: OSX: Fix Game Controller nav mapping to use shoulder for both focusing and tweak speed. (#4759) ocornut 2022-01-17 16:22:32 +01:00
  • 92c4ff1c2f Rename ImGuiKey_LeftControl to ImGuiKey_LeftCtrl, ImGuiKey_RightControl to ImGuiKey_RightCtrl + made key order match mods order. (#4858) ocornut 2022-01-17 15:41:04 +01:00
  • 0755767440 Backends: move io.AddKeyModsEvent() next to io.AddKeyEvent() submission, rely on mods from platform/source. (#4858) + fix #2622 again broken by 746c9f7 ocornut 2022-01-17 14:57:55 +01:00
  • eb823655af Removed support for pre-C++11 compilers. We'll stop supporting VS2010. (#4537) ocornut 2022-01-17 11:53:03 +01:00
  • f84c93d834 Update BACKENDS.md (#4909) Adheesh Trivedi 2022-01-16 22:46:39 +05:30
  • 45c4365ec3 Backends: GLFW: glfwGetKeyName is not implemented in emscripten (#4907, #4858) RandomErrorMessage 2022-01-14 04:47:53 +00:00
  • 6188e94108 Examples: Vulkan: fill Subpass and MSAASamples to increase discoverability (#4886) + IO docs update (#4858) ocornut 2022-01-13 19:18:31 +01:00
  • ec1e57ed4a Merge "Backends: SDL: Fix for Emscriptem. Amend 98ce013." + Fix bad merge from master of "is_app_focused" property (Amend 0647ba3) ocornut 2022-01-13 18:52:19 +01:00
  • 553b04883e Backends: SDL: Fix for Emscriptem. Amend 98ce013. ocornut 2022-01-13 18:52:19 +01:00
  • e51a0a80ca IO: fix SetKeyEventNativeData() not handling ImGuiKey_None the same way as AddKeyEvent(). (#4905, #4858) ocornut 2022-01-13 18:42:18 +01:00
  • 9551635684 IO: fix SetKeyEventNativeData() not handling ImGuiKey_None the same way as AddKeyEvent(). (#4905, #4858) ocornut 2022-01-13 18:42:18 +01:00
  • 0647ba3bad Merge branch 'master' into docking ocornut 2022-01-13 18:36:23 +01:00
  • 200a8f1ea2 Backends: GLFW: Update mouse inputs using glfwSetCursorPosCallback() (breaking) + fallback to provide it when focused but not hovered/captured + update MousePos before MouseButtons. ocornut 2022-01-12 17:08:37 +01:00
  • 98ce013242 Backends: SDL: Update mouse inputs using SDL_MOUSEMOTION/SDL_WINDOWEVENT_LEAVE + fallback to provide it when focused but not hovered/captured + update MousePos before MouseButtons. ocornut 2022-01-12 16:44:24 +01:00
  • bf4de2a46b Backends: Win32: Update mouse inputs using WM_MOUSEMOVE/WM_MOUSELEAVE + fallback to provide it when focused but not hovered/captured + update MousePos before Key Modifiers. ocornut 2022-01-12 16:29:20 +01:00
  • 7f8a89c25c Backends: Win32, SDL: maintain MouseButtonsDown instead of using IsAnyMouseDown(). Internals: added GetInputSourceName(). ocornut 2022-01-12 16:11:10 +01:00
  • 457d4b7b72 Backends: OSX: Adedd basic IME support for macOS. (#3108, #2598) Liu Liu 2022-01-12 14:30:04 +01:00
  • 290c51735e Fixed warning in ImFloorSigned(). (#4889) ocornut 2022-01-12 14:18:34 +01:00
  • 0818a42396 Backend: WebGPU: Fixed incorrect size parameters in WGPU backend (#4891) Théo Monnom 2022-01-11 22:56:35 +01:00
  • 96186a93b9 Typo correction in imgui_demo.cpp (#4892) Bertie Wheen 2022-01-12 13:12:25 +00:00
  • 956e03009a Backends: OSX: Build fIx. Made GetKeyName() input tolerant. Internals: added GetNavInputName(). ocornut 2022-01-11 16:13:38 +01:00
  • acfc7798fd Rename io.AddKeyModEvent() -> io.AddKeyModsEvent() and updated backends accordingly. (#2625, #4858) ocornut 2022-01-10 16:59:31 +01:00
  • e8172fdfbc Rename io.AddKeyModEvent() -> io.AddKeyModsEvent() and updated backends accordingly. (#2625, #4858) ocornut 2022-01-10 16:59:31 +01:00
  • 9ce0f35ef3 Backends: OSX: Fixed typo. ocornut 2022-01-10 15:47:37 +01:00
  • b2e2cc44c2 Backends: OSX: Fixed typo. ocornut 2022-01-10 15:47:37 +01:00
  • ef681e7019 Merge branch 'master' into docking ocornut 2022-01-10 15:24:21 +01:00
  • 790132a672 Added io.AddKeyModEvent() and updated backends accordingly. (#2625, #4858) ocornut 2022-01-10 12:39:01 +01:00
  • 1797135db5 Backends: Android: Update to use io.AddEventKey() will full key map (#2625, #4858) thedmd 2022-01-06 19:57:34 +01:00
  • ee436aa803 Backends: OSX: Update to use io.AddEventKey() will full key map (#2625, #1873, #4858) thedmd 2021-12-12 12:04:13 +01:00
  • da1864d79e Backends: GLUT: Update to use io.AddEventKey() will full key map (#2625, #4858) thedmd 2021-12-12 12:02:20 +01:00
  • 1bfe4a75be Backends: Allegro5: Update to use io.AddEventKey() will full key map (#2625, #4858) thedmd 2021-12-12 11:58:50 +01:00
  • fe646ea591 Backends: SDL2: Update to use io.AddEventKey() will full key map (#2625, #4858) + created localized key (using keycode instead of scancode) (#456) thedmd 2021-12-12 11:57:37 +01:00
  • ecd212c01d Backends: GLFW: Update to use io.AddEventKey() will full key map (#2625, #4858) thedmd 2021-12-12 12:00:31 +01:00
  • 746c9f76e4 Backends: Win32: Update to use io.AddEventKey() will full key map (#2625, #4858) thedmd 2018-05-02 20:42:37 +02:00
  • bf08c13e9b Inputs: Extra Keys / AddKeyEvent(): bidirectional mapping, basic CI, simplify backends, asserts on misuses, tested backward compat. (#2625, #4858, #2787) ocornut 2022-01-03 20:52:52 +01:00
  • 3b66929301 Inputs: Extra Keys / AddKeyEvent(): Added ImGuiKey values, io.AddKeyEvent(), GetKeyName(), IMGUI_DISABLE_OBSOLETE_KEYIO. Obsoleted GetKeyIndex(), io.KeyMap[], io.KeysDown[]. (#2625, #4858, #2787) thedmd 2021-12-11 23:53:38 +01:00
  • afffcd5810 Inputs: rename ImGuiKey_KeyPadEnter > ImGuiKey_KeypadEnter (#2625) ocornut 2021-12-21 18:25:46 +01:00
  • 100ede5764 Backends: GLFW: Fix CTRL+A, CTRL+Y, CTRL+Z to match keyboard layout. Converting GLFW untranslated keycodes back to translated keycodes. (#456, #2625) ocornut 2022-01-05 16:54:03 +01:00
  • 4d023bd7fe Fix for using IMGUI_DISABLE_OBSOLETE_FUNCTIONS ocornut 2022-01-05 14:55:17 +01:00
  • 704ab1114a Merge branch 'master' into docking. Remove Platform_SetImeInputPos. Remove backend-side IME implementation. Rrevert removal of MouseDragMaxDistanceAbs in 206b9ea. (#2589, #3113) ocornut 2022-01-05 14:28:20 +01:00