mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Removed obselete funtion from ImGui::Hotkey
This commit is contained in:
parent
0228f59062
commit
421d5e3c73
3
r5dev/thirdparty/imgui/src/imgui_widgets.cpp
vendored
3
r5dev/thirdparty/imgui/src/imgui_widgets.cpp
vendored
@ -8588,7 +8588,6 @@ bool ImGui::Hotkey(const char* label, int* key, const ImVec2& ssize)
|
||||
return false;
|
||||
}
|
||||
|
||||
const bool requestedFocus = ImGui::FocusableItemRegister(window, id);
|
||||
const bool isHovered = ImGui::ItemHoverable(frameBB, id);
|
||||
|
||||
if (isHovered) {
|
||||
@ -8598,7 +8597,7 @@ bool ImGui::Hotkey(const char* label, int* key, const ImVec2& ssize)
|
||||
|
||||
const bool didClick = isHovered && io.MouseClicked[0];
|
||||
|
||||
if (requestedFocus || didClick)
|
||||
if (didClick)
|
||||
{
|
||||
if (g.ActiveId != id)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user