src/video/cocoa/SDL_cocoamousetap.m
changeset 12201 8bdc4d340419
parent 11811 5d94cb6b24d3
child 12266 0a1710b7c321
equal deleted inserted replaced
12200:c0b17b32b95e 12201:8bdc4d340419
   209             /* Tap starts disabled, until app requests mouse grab */
   209             /* Tap starts disabled, until app requests mouse grab */
   210             CGEventTapEnable(tapdata->tap, false);
   210             CGEventTapEnable(tapdata->tap, false);
   211             tapdata->thread = SDL_CreateThreadInternal(&Cocoa_MouseTapThread, "Event Tap Loop", 512 * 1024, tapdata);
   211             tapdata->thread = SDL_CreateThreadInternal(&Cocoa_MouseTapThread, "Event Tap Loop", 512 * 1024, tapdata);
   212             if (tapdata->thread) {
   212             if (tapdata->thread) {
   213                 /* Success - early out. Ownership transferred to thread. */
   213                 /* Success - early out. Ownership transferred to thread. */
   214             	return;
   214                 return;
   215             }
   215             }
   216             CFRelease(tapdata->tap);
   216             CFRelease(tapdata->tap);
   217         }
   217         }
   218         SDL_DestroySemaphore(tapdata->runloopStartedSemaphore);
   218         SDL_DestroySemaphore(tapdata->runloopStartedSemaphore);
   219     }
   219     }