File indexing completed on 2024-05-12 17:07:27

0001 /*
0002     SPDX-FileCopyrightText: 2022 Aleix Pol Gonzalez <aleixpol@kde.org>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include <QQuickItem>
0010 
0011 class TabletEvents : public QQuickItem
0012 {
0013     Q_OBJECT
0014 public:
0015     TabletEvents(QQuickItem *parent = nullptr);
0016 
0017 Q_SIGNALS:
0018     void padButtonsChanged(const QString &path, uint buttonCount);
0019     void padButtonReceived(const QString &path, uint button, bool pressed);
0020     void toolButtonReceived(uint32_t hardware_serial_hi, uint32_t hardware_serial_lo, uint button, bool pressed);
0021 };