|
@@ -133,12 +133,6 @@
|
|
|
return (YES);
|
|
|
}
|
|
|
|
|
|
-// Flip coordinate system upside down on Y
|
|
|
--(BOOL)isFlipped
|
|
|
-{
|
|
|
- return (YES);
|
|
|
-}
|
|
|
-
|
|
|
-(void)dealloc
|
|
|
{
|
|
|
animationTimer = nil;
|
|
@@ -150,6 +144,8 @@
|
|
|
-(void)flagsChanged:(NSEvent *)event { ImGui_ImplOSX_HandleEvent(event, self); }
|
|
|
-(void)mouseDown:(NSEvent *)event { ImGui_ImplOSX_HandleEvent(event, self); }
|
|
|
-(void)mouseUp:(NSEvent *)event { ImGui_ImplOSX_HandleEvent(event, self); }
|
|
|
+-(void)mouseMoved:(NSEvent *)event { ImGui_ImplOSX_HandleEvent(event, self); }
|
|
|
+-(void)mouseDragged:(NSEvent *)event { ImGui_ImplOSX_HandleEvent(event, self); }
|
|
|
-(void)scrollWheel:(NSEvent *)event { ImGui_ImplOSX_HandleEvent(event, self); }
|
|
|
|
|
|
@end
|
|
@@ -179,6 +175,7 @@
|
|
|
|
|
|
_window = [[NSWindow alloc] initWithContentRect:viewRect styleMask:NSWindowStyleMaskTitled|NSWindowStyleMaskMiniaturizable|NSWindowStyleMaskResizable|NSWindowStyleMaskClosable backing:NSBackingStoreBuffered defer:YES];
|
|
|
[_window setTitle:@"Dear ImGui OSX+OpenGL2 Example"];
|
|
|
+ [_window setAcceptsMouseMovedEvents:YES];
|
|
|
[_window setOpaque:YES];
|
|
|
[_window makeKeyAndOrderFront:NSApp];
|
|
|
|