mirror of
https://github.com/ocornut/imgui.git
synced 2025-09-07 11:58:22 +00:00
IO: variations in analog-only components of gamepad events do not interfere with trickling of mouse position events (#4921, #8508)
This commit is contained in:
@@ -43,6 +43,8 @@ Breaking changes:
|
|||||||
|
|
||||||
Other changes:
|
Other changes:
|
||||||
|
|
||||||
|
- IO: variations in analog-only components of gamepad events do not interfere
|
||||||
|
with trickling of mouse position events (#4921, #8508)
|
||||||
- Error Handling: added better error report and recovery for extraneous
|
- Error Handling: added better error report and recovery for extraneous
|
||||||
EndPopup() call. (#1651, #8499)
|
EndPopup() call. (#1651, #8499)
|
||||||
- Style, InputText: added ImGuiCol_InputTextCursor to configure color of
|
- Style, InputText: added ImGuiCol_InputTextCursor to configure color of
|
||||||
|
@@ -9868,13 +9868,17 @@ void ImGui::UpdateInputEvents(bool trickle_fast_inputs)
|
|||||||
if (trickle_interleaved_nonchar_keys_and_text && (text_inputted && !key_is_potentially_for_char_input))
|
if (trickle_interleaved_nonchar_keys_and_text && (text_inputted && !key_is_potentially_for_char_input))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
key_data->Down = e->Key.Down;
|
if (key_data->Down != e->Key.Down) // Analog change only do not trigger this, so it won't block e.g. further mouse pos events testing key_changed.
|
||||||
key_data->AnalogValue = e->Key.AnalogValue;
|
{
|
||||||
key_changed = true;
|
key_changed = true;
|
||||||
key_changed_mask.SetBit(key_data_index);
|
key_changed_mask.SetBit(key_data_index);
|
||||||
if (trickle_interleaved_nonchar_keys_and_text && !key_is_potentially_for_char_input)
|
if (trickle_interleaved_nonchar_keys_and_text && !key_is_potentially_for_char_input)
|
||||||
key_changed_nonchar = true;
|
key_changed_nonchar = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
key_data->Down = e->Key.Down;
|
||||||
|
key_data->AnalogValue = e->Key.AnalogValue;
|
||||||
|
}
|
||||||
else if (e->Type == ImGuiInputEventType_Text)
|
else if (e->Type == ImGuiInputEventType_Text)
|
||||||
{
|
{
|
||||||
if (io.ConfigFlags & ImGuiConfigFlags_NoKeyboard)
|
if (io.ConfigFlags & ImGuiConfigFlags_NoKeyboard)
|
||||||
|
2
imgui.h
2
imgui.h
@@ -29,7 +29,7 @@
|
|||||||
// Library Version
|
// Library Version
|
||||||
// (Integer encoded as XYYZZ for use in #if preprocessor conditionals, e.g. '#if IMGUI_VERSION_NUM >= 12345')
|
// (Integer encoded as XYYZZ for use in #if preprocessor conditionals, e.g. '#if IMGUI_VERSION_NUM >= 12345')
|
||||||
#define IMGUI_VERSION "1.92.0 WIP"
|
#define IMGUI_VERSION "1.92.0 WIP"
|
||||||
#define IMGUI_VERSION_NUM 19191
|
#define IMGUI_VERSION_NUM 19192
|
||||||
#define IMGUI_HAS_TABLE
|
#define IMGUI_HAS_TABLE
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user