Commit Graph

  • dca527be1b Clipper: Assert on extraneous calls to Step(). (#4822) + Demo tweak. ocornut 2022-02-18 18:39:29 +01:00
  • 29d462ebce Set HoveredID even when g.NavDisableMouseHover is set by gamepad/keyboard navigation. This will facilitate the use of future InputOwner API based on HoveredID/ActiveID. ocornut 2022-02-17 18:39:03 +01:00
  • 421e73e6db Fix an assert in metrics. ocornut 2022-02-17 15:36:00 +01:00
  • d9e60d29e1 Clipper: Fixed a regresssion when not calling End() + calling End() twice as well. (#4822) ocornut 2022-02-17 11:09:06 +01:00
  • 5c8f8d0311 ImVector: Fixed erase() with empty range. (#5009) amend/fix b6b8f66 thedmdandocornut 2022-02-16 19:50:36 +01:00
  • 2dfa71fad5 Inputs: Fixed IsMouseClicked() repeat mode rate being half of keyboard repeat rate. Using KeyModAlt. Removed KeyModsPrev. ocornut 2022-02-16 19:32:46 +01:00
  • 7ff41a78f9 Fonts: binary_to_compressed_c.cpp gained -nostatic option (#5021) Konstantin Podsvirovandocornut 2022-02-15 22:16:55 +03:00
  • 8d3906365d CI: Fixes for OSX + explicitely request C++11. ocornut 2022-02-15 17:06:50 +01:00
  • b6b8f6634e ImVector: Fixed erase() with empty range. (#5009) thedmdandocornut 2022-02-15 11:14:43 +01:00
  • 5854da10e6 Declare other structures as constexpr (#4995) + rename ImGuiInputEventType_Char to ImGuiInputEventType_Text for consistency with event structure. ocornut 2022-02-11 12:24:32 +01:00
  • 71f98dd056 Declare ImVec2 and ImVec4 constructors as constexpr (#4995) Jeff Mearsandocornut 2022-02-07 17:09:43 -08:00
  • 955aacfbc5 GCC: Disable deprecated-enum-enum-conversion for gcc as well (#4997) Borislav StanimirovandGitHub 2022-02-09 10:47:11 +02:00
  • 4691fa0ed5 ImDrawList: PthArcTo: Add small tolerance when comparing angles (#4993) thedmdandocornut 2022-02-08 13:33:26 +01:00
  • aa79d0cd2f Stack Tool: Added option to copy item path to clipboard. (#4631) ocornut 2022-02-08 14:45:57 +01:00
  • 88de982071 Version 1.88 WIP ocornut 2022-02-08 14:44:06 +01:00
  • 97b1abd6dd Internals: rework RenderMouseCursor() signature so we can use it in docking branch more naturally. ocornut 2022-02-08 12:22:46 +01:00
  • c71a50deb5 Version 1.87 ocornut 2022-02-07 17:41:24 +01:00
  • e52bb147a7 Backends: GLFW: Added ImGui_ImplGlfw_InstallCallbacks()/ImGui_ImplGlfw_RestoreCallbacks(). (#4981) ocornut 2022-02-07 16:00:13 +01:00
  • 732bc2058e Backends: GLFW: Handle spurious leave/enter sequences apparently submitted by X11/GLFW combo. (#4984) ocornut 2022-02-07 15:59:28 +01:00
  • 40fd163a3b Backends: OpenGL3: Fix OpenGL ES2 includes on Apple systems. Rokas Kupstysandocornut 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) Clownacyandocornut 2022-01-22 13:55:03 +00:00
  • c39192ba64 Backends: SDL_Renderer: Fix texture atlas format on big-endian hardware (#4927) Clownacyandocornut 2022-01-30 22:42:21 +00: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. rokupsandocornut 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. Clownacyandocornut 2022-01-27 17:52:00 +00:00
  • 64d910ad37 Removed IMGUI_API from inline templated classes. (#4962) ocornut 2022-01-29 18:10:36 +01:00
  • 49e38a5b32 Revert moving ImGuiKeyModFlags to internal.h (amendc906c65) ocornut 2022-01-28 15:53:09 +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) thedmdandocornut 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
  • 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) sergeynandGitHub 2022-01-24 12:09:02 +01:00
  • 4fb0c1f963 Correct some typos in FAQ.md (#4924) ClownacyandGitHub 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. thedmdandocornut 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
  • 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) thedmdandocornut 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 Kissandocornut 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 Kupstysandocornut 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
  • 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) thedmdandocornut 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 TrivediandGitHub 2022-01-16 22:46:39 +05:30
  • 45c4365ec3 Backends: GLFW: glfwGetKeyName is not implemented in emscripten (#4907, #4858) RandomErrorMessageandocornut 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
  • 553b04883e Backends: SDL: Fix for Emscriptem. Amend 98ce013. ocornut 2022-01-13 18:52:19 +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
  • 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 Liuandocornut 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 Monnomandocornut 2022-01-11 22:56:35 +01:00
  • 96186a93b9 Typo correction in imgui_demo.cpp (#4892) Bertie WheenandGitHub 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
  • e8172fdfbc Rename io.AddKeyModEvent() -> io.AddKeyModsEvent() and updated backends accordingly. (#2625, #4858) ocornut 2022-01-10 16:59:31 +01:00
  • b2e2cc44c2 Backends: OSX: Fixed typo. ocornut 2022-01-10 15:47:37 +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) thedmdandocornut 2022-01-06 19:57:34 +01:00
  • ee436aa803 Backends: OSX: Update to use io.AddEventKey() will full key map (#2625, #1873, #4858) thedmdandocornut 2021-12-12 12:04:13 +01:00
  • da1864d79e Backends: GLUT: Update to use io.AddEventKey() will full key map (#2625, #4858) thedmdandocornut 2021-12-12 12:02:20 +01:00
  • 1bfe4a75be Backends: Allegro5: Update to use io.AddEventKey() will full key map (#2625, #4858) thedmdandocornut 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) thedmdandocornut 2021-12-12 11:57:37 +01:00
  • ecd212c01d Backends: GLFW: Update to use io.AddEventKey() will full key map (#2625, #4858) thedmdandocornut 2021-12-12 12:00:31 +01:00
  • 746c9f76e4 Backends: Win32: Update to use io.AddEventKey() will full key map (#2625, #4858) thedmdandocornut 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) thedmdandocornut 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
  • de36ff043e Platform IME: add ImGuiPlatformImeData::InputLineHeight (unused by win32). (#3113) Liu Liuandocornut 2022-01-05 13:38:51 +01:00
  • 29a8ee0826 Platform IME: add ImGuiPlatformImeData::WantVisible, hide IME when not used. (#2589) actboy168andocornut 2022-01-05 13:20:54 +01:00
  • 1cbfe93520 Platform IME: [windows] call ImmSetCandidateWindow() to position candidate window. ocornut 2022-01-05 13:27:48 +01:00