Broken input when built in release mode (Mac)
See original GitHub issueHello @mellinoe
I was having an issue where input (mouse clicks) was not working correctly in my project when built in release mode. I’m using MonoGame.
The clicks only semi-fire (and only if you rapid-click) and the ImGui display objects don’t react to the click events when they do (they show the pressed state but nothing happens after).
I decided to see if I could re-create the issue using your XNA sample and experienced the same behaviour. When built in debug mode the problem does not exist.
I have attached the modified sample (to use the Nuget versions of ImGui.net & MonoGame) to demonstrate the issue.
When building for release mode, I used the following command:
dotnet build -c release -r osx-x64
I included a built binary in the example that you can run also.
ImGui.NET.SampleProgram.XNA.zip
Here’s a video demonstrating the issue (note the mouse clicks vs the input being received and not performing the button action).
- ImGui version:
1.65.0-beta1
- MonoGame version:
3.7.0.7
Could you look into this please as it’s a big blocker for my project. Thank you
Issue Analytics
- State:
- Created 5 years ago
- Comments:12
@Revolt64 There is a beta2 package out now: https://www.nuget.org/packages/ImGui.NET/1.65.0-beta2
I was just waiting for confirmation that the fix worked. I’ll put out a new version tonight.