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

Method createOrGrabBitStatusEntry

src/inputdaemon.cpp:648–664  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

646}
647
648InputDeviceBitArrayStatus *
649InputDaemon::createOrGrabBitStatusEntry(QHash<InputDevice *, InputDeviceBitArrayStatus *> *statusHash, InputDevice *device,
650 bool readCurrent)
651{
652 InputDeviceBitArrayStatus *bitArrayStatus = nullptr;
653
654 if (!statusHash->contains(device))
655 {
656 bitArrayStatus = new InputDeviceBitArrayStatus(device, readCurrent, this);
657 statusHash->insert(device, bitArrayStatus);
658 } else
659 {
660 bitArrayStatus = statusHash->value(device);
661 }
662
663 return bitArrayStatus;
664}
665
666/**
667 * @brief Fetches events from SDL event queue, filters them and

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected