objective c - Fullscreen how to block hot corners -


How to block hot corners when the game is in fullscreen? When Hot Corners are enabled in the system, and the game is in fullscreen, when I take the cursor into any corner game then at least it happens.

I change to fullscreen like this:

  fullscreenWindow = [[NSWindowFullscreen alloc] initWithContentRect: frame stylemask: NSBorderlessWindowMask backing: NSBackingStoreBuffered defer: no]; Main window = [auto window]; [Main Window Set EXPECTMOISMOIDEVENTEES: NO]; [Main window orderout: zero]; // Set the option for our new fullscreen window [FullscreenWindows set is released when yes: yes]; [Fullscreenwondo set level: NSFLottingWindowl]; [Full Screenwidth Setting OnDone: Yes]; [Full screen window set content view: self]; [Fullscreenwando made and orderfirst: self]; [Fullscreen window makeup responder: self]; [Fullscreenwondo setEXeptemoMosmoEdvent: Yes];    

Position of the mouse on which you can change the position of the mouse at the top. - (zero) Mouse mood (NSENET *) Event {NSPX MinolOk; Mouse alok = [nsecc mouse pad]; // Get current mouse position / change mouse position CGEventSourceRef source = CGEventSourceCreate (kCGEventSourceStateCombinedSessionState); Int altitude = (int) ScrnRect.size.height; // NSLog (@ "height:% d, season.y .:% F", height, mouseLock.i); If (height> mouseLoc.y + 5) {CGEventRef mouse = CGEventCreateMouseEvent (NULL, CaseyVentamusod, CGPointMake (mouseLoc.x, 5), 0); CGEventPost (kCGHideventTap, mouse); CFRelease (rat); CFRelease (source); }}

Comments