diff --git a/include/Mw/LowLevel/Cocoa.h b/include/Mw/LowLevel/Cocoa.h index 865d774..2664b0d 100644 --- a/include/Mw/LowLevel/Cocoa.h +++ b/include/Mw/LowLevel/Cocoa.h @@ -96,6 +96,8 @@ MilskoCocoaPixmap *cursorPixmap; NSCursor *cursor; + + MwBool pointerLocked; } + (MilskoCocoa *)newWithParent:(MwLL)parent @@ -113,7 +115,7 @@ - (void)setW:(int)w H:(int)h; - (int)pending; - (void)eventProcess:(NSEvent *)ev; -- (void)handleKeyEvent:(NSEvent *)ev; +- (void)handleKeyEvent:(NSEvent *)ev ll:(MwLL)ll; - (void)handleMouseEvent:(NSEvent *)ev ll:(MwLL)ll; - (void)getNextEvent; - (void)setTitle:(const char *)title; diff --git a/src/backend/cocoa.m b/src/backend/cocoa.m index 1260c25..9175a07 100644 --- a/src/backend/cocoa.m +++ b/src/backend/cocoa.m @@ -352,7 +352,6 @@ static NSPoint pointFlip(NSPoint point) { NSPoint pos_translated = pointFlip([ev locationInWindow]); pos.x = pos_translated.x; pos.y = pos_translated.y; - printf("%d %d\n", pos.x, pos.y); MwLLDispatch(h, move, &pos); break; } @@ -901,7 +900,6 @@ static NSPoint pointFlip(NSPoint point) { } - (void)windowDidBecomeMain:(NSNotification *)notification { - printf("waow\n"); } - (void)windowDidResize:(NSNotification *)notification {