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

Method stopInterception

QKeyMapper/interception_worker.cpp:417–435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

415}
416
417void Interception_Worker::stopInterception()
418{
419 s_InterceptStart = false;
420 QKeyMapper_Worker::pressedMultiKeyboardVKeyCodeList.clear();
421 for (int i = 0; i < INTERCEPTION_MAX_KEYBOARD; ++i) {
422 QKeyMapper_Worker::pressedMultiKeyboardVKeyCodeList.append(QList<quint8>());
423 }
424
425 if (s_InterceptionContext == Q_NULLPTR) {
426 return;
427 }
428
429 interception_set_filter(s_InterceptionContext, interception_is_keyboard, INTERCEPTION_FILTER_KEY_NONE);
430 interception_set_filter(s_InterceptionContext, interception_is_mouse, INTERCEPTION_FILTER_MOUSE_NONE);
431
432#ifdef DEBUG_LOGOUT_ON
433 qDebug().nospace() << "[stopInterception] Stop Keyboard & Mouse Interception.";
434#endif
435}
436
437bool Interception_Worker::getUSBDeviceDescriptor(ushort vendor_id, ushort product_id, QString &iManufacturer, QString &iProduct)
438{

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected