(Breaking) IO: commented out legacy io.ClearInputCharacters() obsoleted in 1.89.8.
This commit is contained in:
@@ -46,6 +46,8 @@ Breaking Changes:
|
|||||||
- ImGuiKey_ModShift --> ImGuiMod_Shift
|
- ImGuiKey_ModShift --> ImGuiMod_Shift
|
||||||
- ImGuiKey_ModAlt --> ImGuiMod_Alt
|
- ImGuiKey_ModAlt --> ImGuiMod_Alt
|
||||||
- ImGuiKey_ModSuper --> ImGuiMod_Super
|
- ImGuiKey_ModSuper --> ImGuiMod_Super
|
||||||
|
- IO: commented out legacy io.ClearInputCharacters() obsoleted in 1.89.8 (Aug 2023).
|
||||||
|
Using io.ClearInputKeys() is enough.
|
||||||
- BeginChild: commented out legacy names which were obsoleted in 1.90.0 (Nov 2023),
|
- BeginChild: commented out legacy names which were obsoleted in 1.90.0 (Nov 2023),
|
||||||
1.90.9 (July 2024), 1.91.1 (August 2024). (#462, #7687)
|
1.90.9 (July 2024), 1.91.1 (August 2024). (#462, #7687)
|
||||||
- ImGuiChildFlags_Border --> ImGuiChildFlags_Borders
|
- ImGuiChildFlags_Border --> ImGuiChildFlags_Borders
|
||||||
|
|||||||
@@ -401,6 +401,7 @@ IMPLEMENTING SUPPORT for ImGuiBackendFlags_RendererHasTextures:
|
|||||||
- ImGuiKey_ModShift --> ImGuiMod_Shift
|
- ImGuiKey_ModShift --> ImGuiMod_Shift
|
||||||
- ImGuiKey_ModAlt --> ImGuiMod_Alt
|
- ImGuiKey_ModAlt --> ImGuiMod_Alt
|
||||||
- ImGuiKey_ModSuper --> ImGuiMod_Super
|
- ImGuiKey_ModSuper --> ImGuiMod_Super
|
||||||
|
- 2025/11/06 (1.92.5) - IO: commented out legacy io.ClearInputCharacters() obsoleted in 1.89.8 (Aug 2023). Calling io.ClearInputKeys() is enough.
|
||||||
- 2025/10/14 (1.92.4) - TreeNode, Selectable, Clipper: commented out legacy names which were obsoleted in 1.89.7 (July 2023) and 1.89.9 (Sept 2023);
|
- 2025/10/14 (1.92.4) - TreeNode, Selectable, Clipper: commented out legacy names which were obsoleted in 1.89.7 (July 2023) and 1.89.9 (Sept 2023);
|
||||||
- ImGuiTreeNodeFlags_AllowItemOverlap --> ImGuiTreeNodeFlags_AllowOverlap
|
- ImGuiTreeNodeFlags_AllowItemOverlap --> ImGuiTreeNodeFlags_AllowOverlap
|
||||||
- ImGuiSelectableFlags_AllowItemOverlap --> ImGuiSelectableFlags_AllowOverlap
|
- ImGuiSelectableFlags_AllowItemOverlap --> ImGuiSelectableFlags_AllowOverlap
|
||||||
@@ -1714,15 +1715,6 @@ void ImGuiIO::ClearInputMouse()
|
|||||||
MouseWheel = MouseWheelH = 0.0f;
|
MouseWheel = MouseWheelH = 0.0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Removed this as it is ambiguous/misleading and generally incorrect to use with the existence of a higher-level input queue.
|
|
||||||
// Current frame character buffer is now also cleared by ClearInputKeys().
|
|
||||||
#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS
|
|
||||||
void ImGuiIO::ClearInputCharacters()
|
|
||||||
{
|
|
||||||
InputQueueCharacters.resize(0);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static ImGuiInputEvent* FindLatestInputEvent(ImGuiContext* ctx, ImGuiInputEventType type, int arg = -1)
|
static ImGuiInputEvent* FindLatestInputEvent(ImGuiContext* ctx, ImGuiInputEventType type, int arg = -1)
|
||||||
{
|
{
|
||||||
ImGuiContext& g = *ctx;
|
ImGuiContext& g = *ctx;
|
||||||
|
|||||||
@@ -2511,9 +2511,6 @@ struct ImGuiIO
|
|||||||
IMGUI_API void ClearEventsQueue(); // Clear all incoming events.
|
IMGUI_API void ClearEventsQueue(); // Clear all incoming events.
|
||||||
IMGUI_API void ClearInputKeys(); // Clear current keyboard/gamepad state + current frame text input buffer. Equivalent to releasing all keys/buttons.
|
IMGUI_API void ClearInputKeys(); // Clear current keyboard/gamepad state + current frame text input buffer. Equivalent to releasing all keys/buttons.
|
||||||
IMGUI_API void ClearInputMouse(); // Clear current mouse state.
|
IMGUI_API void ClearInputMouse(); // Clear current mouse state.
|
||||||
#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS
|
|
||||||
IMGUI_API void ClearInputCharacters(); // [Obsoleted in 1.89.8] Clear the current frame text input buffer. Now included within ClearInputKeys().
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//------------------------------------------------------------------
|
//------------------------------------------------------------------
|
||||||
// Output - Updated by NewFrame() or EndFrame()/Render()
|
// Output - Updated by NewFrame() or EndFrame()/Render()
|
||||||
@@ -2598,6 +2595,8 @@ struct ImGuiIO
|
|||||||
const char* (*GetClipboardTextFn)(void* user_data);
|
const char* (*GetClipboardTextFn)(void* user_data);
|
||||||
void (*SetClipboardTextFn)(void* user_data, const char* text);
|
void (*SetClipboardTextFn)(void* user_data, const char* text);
|
||||||
void* ClipboardUserData;
|
void* ClipboardUserData;
|
||||||
|
|
||||||
|
//void ClearInputCharacters() { InputQueueCharacters.resize(0); } // [Obsoleted in 1.89.8] Clear the current frame text input buffer. Now included within ClearInputKeys(). Removed this as it is ambiguous/misleading and generally incorrect to use with the existence of a higher-level input queue.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
IMGUI_API ImGuiIO();
|
IMGUI_API ImGuiIO();
|
||||||
|
|||||||
Reference in New Issue
Block a user