MCPcopy Create free account
hub / github.com/Zalafina/QKeyMapper / Interception_Worker

Method Interception_Worker

QKeyMapper/interception_worker.cpp:21–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19QStringList Interception_Worker::disabledMouseList;
20
21Interception_Worker::Interception_Worker(QObject *parent) :
22 QObject{parent}
23{
24 if (doLoadInterception()) {
25 int result = libusb_init_context(NULL, NULL, 0);
26 if (result < 0) {
27#ifdef DEBUG_LOGOUT_ON
28 qDebug("[Interception_Worker] Failed to initialise libusb %d - %s", result, libusb_strerror(result));
29#endif
30 s_libusb_available = false;
31 }
32 else {
33#ifdef DEBUG_LOGOUT_ON
34 qDebug("[Interception_Worker] Success to initialise libusb : %d", result);
35#endif
36 s_libusb_available = true;
37 }
38
39 s_USBIDsMap = parseUSBIDs(USBIDS_QRC);
40
41 /* Must do KeyboardDeviceList & MouseDeviceList Initialize before Interception Start */
42 (void)getRefreshedKeyboardDeviceList();
43 (void)getRefreshedMouseDeviceList();
44 }
45}
46
47Interception_Worker::~Interception_Worker()
48{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected