Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_SystemCocoa.mm
| Show First 20 Lines • Show All 409 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| if (systemCocoa->m_windowFocus) { | if (systemCocoa->m_windowFocus) { | ||||
| // Raise application to front, convenient when starting from the terminal | // Raise application to front, convenient when starting from the terminal | ||||
| // and important for launching the animation player. we call this after the | // and important for launching the animation player. we call this after the | ||||
| // application finishes launching, as doing it earlier can make us end up | // application finishes launching, as doing it earlier can make us end up | ||||
| // with a frontmost window but an inactive application. | // with a frontmost window but an inactive application. | ||||
| [NSApp activateIgnoringOtherApps:YES]; | [NSApp activateIgnoringOtherApps:YES]; | ||||
| } | } | ||||
| [NSEvent setMouseCoalescingEnabled:NO]; | |||||
| } | } | ||||
| - (BOOL)application:(NSApplication *)theApplication openFile:(NSString *)filename | - (BOOL)application:(NSApplication *)theApplication openFile:(NSString *)filename | ||||
| { | { | ||||
| return systemCocoa->handleOpenDocumentRequest(filename); | return systemCocoa->handleOpenDocumentRequest(filename); | ||||
| } | } | ||||
| - (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sender | - (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sender | ||||
| ▲ Show 20 Lines • Show All 461 Lines • ▼ Show 20 Lines | |||||
| /** | /** | ||||
| * The event queue polling function | * The event queue polling function | ||||
| */ | */ | ||||
| bool GHOST_SystemCocoa::processEvents(bool waitForEvent) | bool GHOST_SystemCocoa::processEvents(bool waitForEvent) | ||||
| { | { | ||||
| bool anyProcessed = false; | bool anyProcessed = false; | ||||
| NSEvent *event; | NSEvent *event; | ||||
| // SetMouseCoalescingEnabled(false, NULL); | |||||
| // TODO : implement timer ?? | // TODO : implement timer ?? | ||||
| #if 0 | #if 0 | ||||
| do { | do { | ||||
| GHOST_TimerManager* timerMgr = getTimerManager(); | GHOST_TimerManager* timerMgr = getTimerManager(); | ||||
| if (waitForEvent) { | if (waitForEvent) { | ||||
| GHOST_TUns64 next = timerMgr->nextFireTime(); | GHOST_TUns64 next = timerMgr->nextFireTime(); | ||||
| double timeOut; | double timeOut; | ||||
| ▲ Show 20 Lines • Show All 1,107 Lines • Show Last 20 Lines | |||||