MCPcopy Create free account
hub / github.com/AntiMicroX/antimicrox / clearBitArrayStatusInstances

Method clearBitArrayStatusInstances

src/inputdaemon.cpp:1242–1273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1240}
1241
1242void InputDaemon::clearBitArrayStatusInstances()
1243{
1244 QHashIterator<InputDevice *, InputDeviceBitArrayStatus *> genIter(releaseEventsGenerated);
1245
1246 while (genIter.hasNext())
1247 {
1248 InputDeviceBitArrayStatus *temp = genIter.next().value();
1249
1250 if (temp != nullptr)
1251 {
1252 temp->deleteLater();
1253 temp = nullptr;
1254 }
1255 }
1256
1257 getReleaseEventsGeneratedLocal().clear();
1258
1259 QHashIterator<InputDevice *, InputDeviceBitArrayStatus *> pendIter(pendingEventValues);
1260
1261 while (pendIter.hasNext())
1262 {
1263 InputDeviceBitArrayStatus *temp = pendIter.next().value();
1264
1265 if (temp != nullptr)
1266 {
1267 temp->deleteLater();
1268 temp = nullptr;
1269 }
1270 }
1271
1272 getPendingEventValuesLocal().clear();
1273}
1274
1275void InputDaemon::resetActiveButtonMouseDistances()
1276{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected