You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lately I have been wondering if the char filtering is a good idea at all. I wonder if we should just tend to disable filtering and perform the scan>store>display sequence naturally when Enter is pressed.
Version/Branch of Dear ImGui:
Version: 64b1e44
Branch: docking
My Issue/Question:
InputDouble()
does not allowinf
ornan
be input, despite these being recognized bysscanf()
(see https://en.cppreference.com/w/cpp/string/byte/strtof) and output byprintf()
. This means an infinity/NaN value can be displayed, but not set. This is caused byImGuiInputTextFlags_CharsScientific
not allowing these characters: https://github.com/ocornut/imgui/blob/d72e1563d4274e0f1a21973cf2d98563d579d377/imgui_widgets.cpp#L3985C9-L3987C27A workaround is to use
InputScalar()
and not settingImGuiInputTextFlags_CharsScientific
.Standalone, minimal, complete and verifiable example:
The text was updated successfully, but these errors were encountered: