Skip to content

Commit

Permalink
if the tap is explicitly disabled by code or by another program, let …
Browse files Browse the repository at this point in the history
…it remain disabled! this is different than the automatic "event tap was too slow therefore we stopped processing it" timeout which we want to re-enable after.
  • Loading branch information
slouken committed Nov 26, 2016
1 parent 25f54f0 commit 51ccc9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/cocoa/SDL_cocoamousetap.m
Expand Up @@ -69,11 +69,11 @@

switch (type) {
case kCGEventTapDisabledByTimeout:
case kCGEventTapDisabledByUserInput:
{
CGEventTapEnable(tapdata->tap, true);
return NULL;
}
case kCGEventTapDisabledByUserInput:
default:
break;
}
Expand Down

0 comments on commit 51ccc9e

Please sign in to comment.