Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backspace not worked in input fields #54

Open
d954mas opened this issue Jun 18, 2024 · 5 comments
Open

Backspace not worked in input fields #54

d954mas opened this issue Jun 18, 2024 · 5 comments

Comments

@d954mas
Copy link

d954mas commented Jun 18, 2024

defold 1.8.1
windows

Mb this wrong?
dc65c4d

In demo project backspace also not worked in input for positions

@d954mas d954mas changed the title Backspace not worked in nput fields Backspace not worked in input fields Jun 18, 2024
@d954mas
Copy link
Author

d954mas commented Jun 18, 2024

worked in 2.0.0 not worked in 2.1.1

Also arrows not worked

@dri-richard
Copy link
Contributor

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
Copy link
Author

d954mas commented Jun 18, 2024

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
Copy link
Author

d954mas commented Jun 18, 2024

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

@d954mas
Copy link
Author

d954mas commented Jun 18, 2024

Look

// All our named keys are >= 512. Keys value 0 to 511 are left unused as legacy native/opaque key values (< 1.87).

But you reset values only < 512

for (int i = 0; i < 512; i++)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants