Skip to content
Permalink
Browse files

if the tap is explicitly disabled by code or by another program, let …

…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 51ccc9ed8cab7bf1e3ea293328f2e382eceaf273
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/video/cocoa/SDL_cocoamousetap.m
@@ -69,11 +69,11 @@

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

0 comments on commit 51ccc9e

Please sign in to comment.