Remove redundant invert

crumbl3d-release
Clive Galway 5 years ago
parent 998c1bc95e
commit 37d48459bb

@ -571,9 +571,9 @@ namespace AutoHotInterception
var mapping = _keyboardMappings[i][code];
if (mapping.Block) block = true;
if (mapping.Concurrent)
ThreadPool.QueueUserWorkItem(threadProc => mapping.Callback(1 - state));
ThreadPool.QueueUserWorkItem(threadProc => mapping.Callback(state));
else if (_workerThreads.ContainsKey(i) && _workerThreads[i].ContainsKey(code))
_workerThreads[i][code]?.Actions.Add(() => mapping.Callback(1 - state));
_workerThreads[i][code]?.Actions.Add(() => mapping.Callback(state));
}
}

@ -18,4 +18,5 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
### Fixed
- SubscribeMouseMove endpoint fixed to not return bool (Fix "Can not implicitly convert type Void to object" error)
- Pause button now works
- UnsubscribeMouseButton now correctly checks if the device is a mouse
- UnsubscribeMouseButton now correctly checks if the device is a mouse
- Button state is no longer inverted as it was in 0.4.0
Loading…
Cancel
Save