// nothing if a noisy device is plugged in (the % of that
// spent in input_callback is negligible, so it's not
// something we can make faster). I don't really think that's
// nothing if a noisy device is plugged in (the % of that
// spent in input_callback is negligible, so it's not
// something we can make faster). I don't really think that's
// and the window is closed, just switch off the HID manager
// entirely. This probably also has some marginal benefits for
// compatibility with other applications that want exclusive
// and the window is closed, just switch off the HID manager
// entirely. This probably also has some marginal benefits for
// compatibility with other applications that want exclusive
if (simulatingEvents != _simulatingEvents) {
_simulatingEvents = simulatingEvents;
NSInteger state = simulatingEvents ? NSOnState : NSOffState;
if (simulatingEvents != _simulatingEvents) {
_simulatingEvents = simulatingEvents;
NSInteger state = simulatingEvents ? NSOnState : NSOffState;
NSString *name = simulatingEvents
? NJEventSimulationStarted
: NJEventSimulationStopped;
NSString *name = simulatingEvents
? NJEventSimulationStarted
: NJEventSimulationStopped;