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

Breaking Changes For Handling Inputs > v1.90.0.0 #451

Open
NoahGWood opened this issue Nov 21, 2023 · 0 comments
Open

Breaking Changes For Handling Inputs > v1.90.0.0 #451

NoahGWood opened this issue Nov 21, 2023 · 0 comments

Comments

@NoahGWood
Copy link

NoahGWood commented Nov 21, 2023

ImGuiIOPtr no longer has KeysDown or KeyMap, and that's probably going to cause people problems. The affected code is generated from C++ and has apparently been labelled obsolete in the C++ library.

If you're using OpenTK.Windowing.GraphicsLibraryFramework (GLFW), you'll need to use io.AddKeyEvent() to bind your key presses or revert to version 1.89.9.3 or below.

There may have been other breaking changes, would recommend seeing the Transition Guide for more info.

Last Working:

public fixed int KeyMap[652];

Current:
public Vector2 MousePos;

C++ Reference:
https://github.com/ocornut/imgui/blob/3733b5064e1820dc8517fedba2b34bfbdef569ab/imconfig.h#L31C3-L31C3

Typical Errors Caused:
ImGuiIOPtr' does not contain a definition for 'KeyMap' and no accessible extension method 'KeyMap' accepting a first argument of type 'ImGuiIOPtr' could be found (are you missing a using directive or an assembly reference?)

'ImGuiIOPtr' does not contain a definition for 'KeysDown' and no accessible extension method 'KeysDown' accepting a first argument of type 'ImGuiIOPtr' could be found (are you missing a using directive or an assembly reference?)

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

1 participant