File indexing completed on 2024-04-21 16:11:00

0001 /*
0002  *   SPDX-FileCopyrightText: 2022 Bart Ribbers <bribbers@disroot.org>
0003  *   SPDX-FileCopyrightText: 2022 Aleix Pol Gonzalez <aleixpol@kde.org>
0004  *
0005  *   SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0006  */
0007 
0008 #ifndef KWINFAKEINPUTSYSTEM_H
0009 #define KWINFAKEINPUTSYSTEM_H
0010 
0011 #include "abstractsystem.h"
0012 
0013 class FakeInput;
0014 
0015 class KWinFakeInputSystem : public AbstractSystem
0016 {
0017     Q_OBJECT
0018 
0019 public:
0020     bool init() override;
0021     void emitKey(int key, bool pressed) override;
0022 
0023 private:
0024     FakeInput *m_ext = nullptr;
0025 };
0026 
0027 #endif // KWINFAKEINPUTSYSTEM_H