Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qbsdmouse.h
Go to the documentation of this file.
1// Copyright (C) 2015-2016 Oleksandr Tymoshenko <gonzo@bluezbox.com>
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QBSDMOUSE_H
5#define QBSDMOUSE_H
6
7#include <QString>
8#include <QScopedPointer>
9#include <QSocketNotifier>
10
11#include <qobject.h>
12
14
15class QSocketNotifier;
16
18{
20public:
21 QBsdMouseHandler(const QString &key, const QString &specification);
22 ~QBsdMouseHandler() override;
23
24private:
25 void readMouseData();
26
27private:
29 int m_devFd = -1;
30 int m_packetSize = 0;
31 int m_x = 0;
32 int m_y = 0;
33 int m_xOffset = 0;
34 int m_yOffset = 0;
35 Qt::MouseButtons m_buttons = Qt::NoButton;
36};
37
39
40#endif // QBSDMOUSE_H
~QBsdMouseHandler() override
Definition qbsdmouse.cpp:85
\inmodule QtCore
Definition qobject.h:90
\inmodule QtCore
\inmodule QtCore
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:127
Combined button and popup list for selecting options.
@ NoButton
Definition qnamespace.h:56
GLuint64 key
#define Q_OBJECT