britzl / extension-imgui

Dear ImGUI extension for Defold
MIT License
51 stars 17 forks source link

Backspace not worked in input fields #54

Open d954mas opened 2 weeks ago

d954mas commented 2 weeks ago

defold 1.8.1 windows

Mb this wrong? https://github.com/britzl/extension-imgui/commit/dc65c4d5a2f09a4941d354e4c84a90024c8949f4

In demo project backspace also not worked in input for positions

d954mas commented 2 weeks ago

worked in 2.0.0 not worked in 2.1.1

Also arrows not worked

dri-richard commented 2 weeks ago

Mb this wrong? dc65c4d

worked in 2.0.0 not worked in 2.1.1

Release 2.1.1 does not include that commit, which was a required part of the upgrade to imgui 1.9.0, which I specifically tested (in Defold 1.8.0)

In Defold 1.9.0 beta (which I know is not the version you're using) it doesn't work again. I believe this is a change in Defold, possibly related to the GLFW upgrade, as imgui.script no longer receives an input event for key_backspace. Perhaps @britzl knows more.

d954mas commented 2 weeks ago

I don't think that it is related to glfw.

Defold 1.8.1, imgui 2.0.0 worked.

Mb it was broken when update imgui in 2.1.0?

d954mas commented 2 weeks ago

If I understand imgui not get input from glfw. It get input from lua code

d954mas commented 2 weeks ago

Look https://github.com/britzl/extension-imgui/blob/dfbaef0736ef99fce64028e09ff67841abecdfbd/imgui/src/imgui/imgui.h#L1341

But you reset values only < 512

https://github.com/britzl/extension-imgui/blob/dfbaef0736ef99fce64028e09ff67841abecdfbd/imgui/src/extension_imgui.cpp#L2497