dca527be1b
Clipper: Assert on extraneous calls to Step(). (#4822) + Demo tweak.
ocornut2022-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.
ocornut2022-02-17 18:39:03 +01:00
421e73e6db
Fix an assert in metrics.
ocornut2022-02-17 15:36:00 +01:00
d9e60d29e1
Clipper: Fixed a regresssion when not calling End() + calling End() twice as well. (#4822)
ocornut2022-02-17 11:09:06 +01:00
5854da10e6
Declare other structures as constexpr (#4995) + rename ImGuiInputEventType_Char to ImGuiInputEventType_Text for consistency with event structure.
ocornut2022-02-11 12:24:32 +01:00
40fd163a3b
Backends: OpenGL3: Fix OpenGL ES2 includes on Apple systems.
Rokas Kupstysandocornut2022-02-02 10:38:37 +02:00
2554b512c0
Backends: OSX: Forward keyDown/keyUp events to OS when unused by Dear ImGui.
ocornut2022-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)
Clownacyandocornut2022-01-22 13:55:03 +00:00
c39192ba64
Backends: SDL_Renderer: Fix texture atlas format on big-endian hardware (#4927)
Clownacyandocornut2022-01-30 22:42:21 +00:00
43177324c0
Backends: GLFW: Fixed miss untranslation of keypad keys. (#4921, #452)
ocornut2022-02-01 15:27:10 +01:00
6f73dbea80
TestEngine: submit window data to item system.
ocornut2022-02-01 15:02:14 +01:00
35e197f413
TestEngine: fixed InvisibleButton() and ArrowButton() not calling the info macro.
ocornut2022-02-01 11:08:47 +01:00
551ab84c2d
Backends: OSX: Fix building with old Xcode versions.
rokupsandocornut2022-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.
Clownacyandocornut2022-01-27 17:52:00 +00:00
49e38a5b32
Revert moving ImGuiKeyModFlags to internal.h (amendc906c65)
ocornut2022-01-28 15:53:09 +01:00
9def2b04d7
IO: Added simple (incomplete) filter for duplicates to reduce data spam. (#4921, #4858)
ocornut2022-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)
thedmdandocornut2022-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)
ocornut2022-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)
ocornut2022-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.
ocornut2022-01-26 15:53:18 +01:00
8555335935
Shallow alignment of ImGuiKey stuff + moving some in internals. Internals: add offset to ImBitArray<>, simpify ActiveIdUsingKeyInputMask.
ocornut2022-01-25 12:23:26 +01:00
b17b2fb732
Popups: Fixed an issue when reopening a same popup multiple times would offset them by 1 pixel on the right. (#4936)
ocornut2022-01-24 13:13:38 +01:00
26e59c8742
Nav: Fixed gamepad navigation in wrapping popups not wrapping all the way. (#4365)
ocornut2022-01-21 14:41:34 +01:00
62d6be3747
IO: Removed ImGuiInputSource from public api for now, unnecessary. (#4858, #787)
ocornut2022-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)
thedmdandocornut2022-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)
ocornut2022-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)
ocornut2022-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)
ocornut2022-01-20 17:12:11 +01:00
f33bb99821
IO: added AddKeyAnalogEvent() and support for ImGuiKey_GamepadXXXX. (#4858, #787)
ocornut2022-01-19 13:14:40 +01:00
6e63fcaca3
Backends: Vulkan: Amends, fix miscast on 32-bit systems with the right ImTextureID=ImU64. (#914)
ocornut2022-01-20 16:56:29 +01:00
ceb26bac48
Backends: Vulkan: Added support for ImTextureID as VkDescriptorSet, amends. (#914)
ocornut2022-01-20 15:53:28 +01:00
29f104319e
Backends: Vulkan: Added support for ImTextureID as VkDescriptorSet, add ImGui_ImplVulkan_AddTexture(). (#914)
Marcell Kissandocornut2022-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 Kupstysandocornut2022-01-20 13:52:19 +02:00
7ad42ff431
IO: renamed io.ConfigInputEventQueue to io.ConfigInputTrickleEventQueue. (#4858)
ocornut2022-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).
ocornut2022-01-19 18:03:36 +01:00
97b1ffcb3b
IO: Reorder enums, compact a little in header. Removed const from internal GetKeyData().
ocornut2022-01-19 15:40:17 +01:00
91ae56af45
Removed support for legacy arithmetic operators (+*/) when inputing text into a slider/drag. (#4917, #3184)
ocornut2022-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)
ocornut2022-01-18 17:41:35 +01:00
90a6961638
IO: apply same flooring as UpdateMouseInputs() in dupe event processing. (#4858) + provision for test engine.
ocornut2022-01-17 18:10:51 +01:00
b8e56dce83
IO: Added AddMousePosEvent(), AddMouseButtonEvent(), AddMouseWheelEvent() api + updated all Backends. (#4858) (input queue code will be next commit)
thedmdandocornut2022-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)
ocornut2022-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)
ocornut2022-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 746c9f7ocornut2022-01-17 14:57:55 +01:00
eb823655af
Removed support for pre-C++11 compilers. We'll stop supporting VS2010. (#4537)
ocornut2022-01-17 11:53:03 +01:00
9551635684
IO: fix SetKeyEventNativeData() not handling ImGuiKey_None the same way as AddKeyEvent(). (#4905, #4858)
ocornut2022-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.
ocornut2022-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.
ocornut2022-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.
ocornut2022-01-12 16:29:20 +01:00
7f8a89c25c
Backends: Win32, SDL: maintain MouseButtonsDown instead of using IsAnyMouseDown(). Internals: added GetInputSourceName().
ocornut2022-01-12 16:11:10 +01:00
da1864d79e
Backends: GLUT: Update to use io.AddEventKey() will full key map (#2625, #4858)
thedmdandocornut2021-12-12 12:02:20 +01:00
1bfe4a75be
Backends: Allegro5: Update to use io.AddEventKey() will full key map (#2625, #4858)
thedmdandocornut2021-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)
thedmdandocornut2021-12-12 11:57:37 +01:00
ecd212c01d
Backends: GLFW: Update to use io.AddEventKey() will full key map (#2625, #4858)
thedmdandocornut2021-12-12 12:00:31 +01:00
746c9f76e4
Backends: Win32: Update to use io.AddEventKey() will full key map (#2625, #4858)
thedmdandocornut2018-05-02 20:42:37 +02:00