-
Notifications
You must be signed in to change notification settings - Fork 26
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
Updated input handling to fix ImGui.Net breaking changes. #29
Conversation
Enabled support for docking.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for the PR!
A goal with this repo is to make ImGuiController.cs
useable standalone by just copying the file, this means that the KeyTranslator.cs
should be part of the UpdateImGuiInput()
method (it's fine if the method becomes really long).
…tandalone per [PR 29 Review](NogginBops#29 (review)) Amending: Updated input handling to fix ImGui.Net breaking changes. Enabled support for docking.
I've been using github since 2017 and I still don't know why it takes me 40+ commits and PR's to change one file, but I'm blaming Visual Studio this time
Should be fixed :) |
Dear ImGui Sample/ImGuiController.cs
Outdated
{ | ||
public static ImGuiKey Translate(Keys key) | ||
{ | ||
switch (key) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[optional] you can reduce the length a bit if you do something like this.
https://github.com/zaafar/ClickableTransparentOverlay/blob/master/ClickableTransparentOverlay/ImGuiInputHandler.cs#L161:L172
Fixed errors caused by changes in latest ImGuiNet * enabled support for docking.