IO: Added io.ClearEventsQueue(). Obsoleted io.ClearInputCharacters(). (#4921)

cc #2425 #1153 #1600
This commit is contained in:
ocornut
2023-07-06 15:55:17 +02:00
parent 9a15730c2a
commit 6aa408c6af
3 changed files with 33 additions and 7 deletions

View File

@ -36,8 +36,19 @@ HOW TO UPDATE?
Breaking changes:
- IO: Obsoleted io.ClearInputCharacters() (added in 1.47) as it now ambiguous
and often incorrect/misleading considering the existence of a higher-level
input queue. (#4921)
Other changes:
- IO: Added io.ClearEventsQueue() to clear incoming inputs events. (#4921)
May be useful in conjunction with io.ClearInputsKeys() if you need to clear
both current inputs state and queued events (e.g. when using blocking native
dialogs such as Windows's ::MessageBox() or ::GetOpenFileName()).
- IO: Changed io.ClearInputsKeys() specs to also clear current frame character buffer
(what now obsoleted io.ClearInputCharacters() did), as this is effectively the
desirable behavior.
- Demo: Better showcase use of SetNextItemAllowOverlap(). (#6574, #6512, #3909, #517)