Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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:
23
24private:
25 void readMouseData();
26
27private:
28 QScopedPointer<QSocketNotifier> m_notifier;
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
38QT_END_NAMESPACE
39
40#endif // QBSDMOUSE_H
~QBsdMouseHandler() override
Definition qbsdmouse.cpp:85