Open rgosens2 opened 3 weeks ago
I don't own any Apple device and as such can't support them. If this needs fixing, feel free to provide a PR.
Mouse y coordinate is reversed (moving mouse down moves pointer up in imgui). I'll look into it. Mouse works fine in your Vulkan repo. Good examples. Thanks.
In base/VulkanExampleBase.cpp add:
- (NSPoint)getMouseLocalPoint:(NSEvent*)event
{
NSPoint location = [event locationInWindow];
NSPoint point = [self convertPoint:location fromView:nil];
point.y = self.frame.size.height - point.y;
return point;
}
And change:
NSPoint point = [self convertPoint:location fromView:nil];
to:
auto point = [self getMouseLocalPoint:event];
(Same as in your Vulkan repo where mouse works OK)
Builds but Imgui not working.