Initial project import

This commit is contained in:
Agila Forge Importer committed 2026-07-13 15:20:32 +00:00
commit 23f2d29e32
11957 files changed
+1754577

No files matched your search

+40
View File
@@ -0,0 +1,40 @@
@implementation MyView2
int __v_sokol_inited = 0;
// Alternative drawRect which calls a frame function with native Cocoa calls
- (void)drawRect:(NSRect)rect {
//puts("drawRect()");
if (__v_sokol_inited == 0) {
_sapp_call_init();
__v_sokol_inited = 1;
}
_sapp_call_frame_native();
}
//- (BOOL)isOpaque {
// return NO;
//}
- (BOOL)canBecomeKeyView {
return YES;
}
- (BOOL)acceptsFirstResponder {
return YES;
}
// - (void)mouseExited:(NSEvent*)event {
// }
// - (void)mouseDown:(NSEvent*)event {
// }
- (BOOL)acceptsFirstMouse:(NSEvent *)event {
return YES;
}
@end