7#include <QCoreApplication>
11#include <QLoggingCategory>
12#include <QtCore/private/qcore_unix_p.h>
15#include <dev/evdev/input.h>
17#include <linux/input.h>
25#define KEY_CNT (KEY_MAX+1)
28#define REL_CNT (REL_MAX+1)
31#define ABS_CNT (ABS_MAX+1)
33#ifndef ABS_MT_POSITION_X
34#define ABS_MT_POSITION_X 0x35
36#ifndef ABS_MT_POSITION_Y
37#define ABS_MT_POSITION_Y 0x36
40#define LONG_BITS (sizeof(long) * 8 )
41#define LONG_FIELD_SIZE(bits) ((bits / LONG_BITS) + 1)
43static bool testBit(
long bit,
const long *field)
62 qCDebug(lcDD) <<
"static device discovery for type" <<
types;
74 const auto deviceFiles =
dir.entryList();
75 for (
const QString &deviceFile : deviceFiles) {
85 const auto deviceFiles =
dir.entryList();
86 for (
const QString &deviceFile : deviceFiles) {
98bool QDeviceDiscoveryStatic::checkDeviceType(
const QString &
device)
100 int fd =
QT_OPEN(
device.toLocal8Bit().constData(), O_RDONLY | O_NDELAY, 0);
106 qCDebug(lcDD) <<
"doing static device discovery for " <<
device;
116 memset(bitsAbs, 0,
sizeof(bitsAbs));
117 memset(bitsKey, 0,
sizeof(bitsKey));
118 memset(bitsRel, 0,
sizeof(bitsRel));
120 ioctl(
fd, EVIOCGBIT(EV_ABS,
sizeof(bitsAbs)), bitsAbs);
121 ioctl(
fd, EVIOCGBIT(EV_KEY,
sizeof(bitsKey)), bitsKey);
122 ioctl(
fd, EVIOCGBIT(EV_REL,
sizeof(bitsRel)), bitsRel);
IOBluetoothDevice * device
QDeviceDiscoveryStatic(QDeviceTypes types, QObject *parent=nullptr)
QStringList scanConnectedDevices() override
\macro QT_RESTRICTED_CAST_FROM_ASCII
static QString fromLatin1(QByteArrayView ba)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Combined button and popup list for selecting options.
#define QT_DRM_DEVICE_PATH
#define QT_EVDEV_DEVICE_PATH
#define QT_DRM_DEVICE_PREFIX
#define ABS_MT_POSITION_X
static bool testBit(long bit, const long *field)
#define ABS_MT_POSITION_Y
#define LONG_FIELD_SIZE(bits)
#define Q_LOGGING_CATEGORY(name,...)
#define qCDebug(category,...)
GLsizei GLenum GLenum * types
static QString absoluteFilePath(const Options *options, const QString &relativeFileName)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent