-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Implement more input callbacks #31
Conversation
@@ -39,4 +39,8 @@ - (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sende | |||
return NSTerminateCancel; | |||
} | |||
|
|||
- (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)sender { | |||
return YES; | |||
} |
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.
this seems a little sus to me; does it mean that when the user clicks the exit button on the last remaining window, the app won't get a chance to intercept/handle that event to decide if it wants to shutdown?
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.
Looks like applicationShouldTerminate()
would still be called. But I'm not sure about returning NSTerminateCancel
there. Makes it sound like the app couldn't close gracefully.
The terminate()
docs look helpful
_insertText_block = insertText_block; | ||
} | ||
|
||
- (void)setBlock_magnify:(void (^)(NSEvent *))magnify_block |
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.
nice!
[self interpretKeyEvents:@[ event ]]; | ||
} | ||
|
||
- (void)insertText:(id)string { |
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.
I guess we can implement image copy/paste in pixi now too maybe :)
This contains all necessary new input related callbacks/functions to get pixi back working on macos with scrolling, mouse movement, buttons, etc.