mirror of
https://github.com/Drezil/imgui.git
synced 2025-04-16 08:04:00 +00:00
Fixed IsKeyReleased() and IsMouseReleased() returning true on the first frame.
Loosely related to #362
This commit is contained in:
parent
e83b529846
commit
bd78892164
@ -704,6 +704,10 @@ ImGuiIO::ImGuiIO()
|
|||||||
MouseDoubleClickTime = 0.30f;
|
MouseDoubleClickTime = 0.30f;
|
||||||
MouseDoubleClickMaxDist = 6.0f;
|
MouseDoubleClickMaxDist = 6.0f;
|
||||||
MouseDragThreshold = 6.0f;
|
MouseDragThreshold = 6.0f;
|
||||||
|
for (int i = 0; i < IM_ARRAYSIZE(MouseDownDuration); i++)
|
||||||
|
MouseDownDuration[i] = MouseDownDurationPrev[i] = -1.0f;
|
||||||
|
for (int i = 0; i < IM_ARRAYSIZE(KeysDownDuration); i++)
|
||||||
|
KeysDownDuration[i] = KeysDownDurationPrev[i] = -1.0f;
|
||||||
for (int i = 0; i < ImGuiKey_COUNT; i++)
|
for (int i = 0; i < ImGuiKey_COUNT; i++)
|
||||||
KeyMap[i] = -1;
|
KeyMap[i] = -1;
|
||||||
KeyRepeatDelay = 0.250f;
|
KeyRepeatDelay = 0.250f;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user