/* SPDX-FileCopyrightText: 2001, 2002 Ellis Whitehead SPDX-FileCopyrightText: 2013 Martin Gräßlin SPDX-FileCopyrightText: 2024 Yifan Zhu SPDX-License-Identifier: LGPL-2.0-or-later */ #include "dummy.h" //---------------------------------------------------- static KGlobalAccelImpl *s_interface = nullptr; KGlobalAccelImpl *KGlobalAccelImpl::instance() { return s_interface; } KGlobalAccelImpl::KGlobalAccelImpl(QObject *parent) : KGlobalAccelInterface(parent) { } KGlobalAccelImpl::~KGlobalAccelImpl() { } bool KGlobalAccelImpl::grabKey(int keyQt, bool grab) { Q_UNUSED(keyQt); Q_UNUSED(grab); return true; } void KGlobalAccelImpl::setEnabled(bool enable) { s_interface = enable ? this : nullptr; } bool KGlobalAccelImpl::checkKeyPressed(int keyQt) { return keyPressed(keyQt); } bool KGlobalAccelImpl::checkKeyReleased(int keyQt) { return keyReleased(keyQt); } bool KGlobalAccelImpl::checkPointerPressed(Qt::MouseButtons button) { return pointerPressed(button); } bool KGlobalAccelImpl::checkAxisTriggered(int axis) { return axisTriggered(axis); }