Conversation
fc4b67d to
f8b45c3
Compare
|
|
||
| NS_ASSUME_NONNULL_BEGIN | ||
|
|
||
| static const uint32_t kCGEventFieldTouchContxtID = 0x92; |
There was a problem hiding this comment.
Typo -> kCGEventFieldTouchContextID
|
I tested this branch briefly in the profiler. The good news:
The bad news:
To run these tests I open up Haptic Key and repeatedly tap or move the mouse cursor in circular patterns while running the Time Profiler in Instruments, or keep an eye on CPU Usage in Activity Monitor. |
f8b45c3 to
cbd88ed
Compare
|
True. As I separate event tap to the own runloop on the different thread than NSApplication’s runloop, then see cleaner call tree, but still most of time is spent to process As long as we’re using Probably there are yet another solution to listen only events on Touch Bar, but I didn’t investigate yet. |
|
Will it ever be merged? Or is this app is obsolete? |
|
Any updates? I really want to use this app, but if it costs battery life then I prefer the battery. |



CGEventdirectly without converting toNSEventkCGEventFieldTouchContextIDbefore convertingNSEventto reduceeventWithCGEvent:call.