Sfoglia il codice sorgente

GetMouse is not available on 64-bit. (Carbon functionality?)

woollybah 11 anni fa
parent
commit
95795988fe
1 ha cambiato i file con 3 aggiunte e 4 eliminazioni
  1. 3 4
      system.mod/system.macos.m

+ 3 - 4
system.mod/system.macos.m

@@ -155,10 +155,9 @@ static int mouseViewPos( NSView *view,int *x,int *y ){
 	NSPoint point;
 	NSPoint point;
 	NSWindow *window;
 	NSWindow *window;
 	if( displayCaptured || !view ){
 	if( displayCaptured || !view ){
-		Point point;
-		GetMouse( &point );
-		*x=point.h;
-		*y=point.v;
+		point = [NSEvent mouseLocation];
+		*x=point.x;
+		*y=point.y;
 		return 1;
 		return 1;
 	}
 	}
 	window=[view window];
 	window=[view window];