Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qevdevtouchhandler.cpp File Reference
#include "qevdevtouchhandler_p.h"
#include "qoutputmapping_p.h"
#include <QStringList>
#include <QHash>
#include <QSocketNotifier>
#include <QGuiApplication>
#include <QLoggingCategory>
#include <QtCore/private/qcore_unix_p.h>
#include <QtGui/qpointingdevice.h>
#include <QtGui/private/qhighdpiscaling_p.h>
#include <QtGui/private/qguiapplication_p.h>
#include <QtGui/private/qpointingdevice_p.h>
#include <mutex>
#include <linux/input.h>
#include <math.h>
#include "moc_qevdevtouchhandler_p.cpp"
+ Include dependency graph for qevdevtouchhandler.cpp:

Go to the source code of this file.

Classes

class  QEvdevTouchScreenData
 
struct  QEvdevTouchScreenData::Contact
 

Macros

#define input_event_sec   time.tv_sec
 
#define input_event_usec   time.tv_usec
 
#define ABS_MT_TOUCH_MAJOR   0x30 /* Major axis of touching ellipse */
 
#define ABS_MT_POSITION_X   0x35 /* Center X ellipse position */
 
#define ABS_MT_POSITION_Y   0x36 /* Center Y ellipse position */
 
#define ABS_MT_SLOT   0x2f
 
#define ABS_CNT   (ABS_MAX+1)
 
#define ABS_MT_TRACKING_ID   0x39 /* Unique ID of initiated contact */
 
#define ABS_MT_PRESSURE   0x3a
 
#define SYN_MT_REPORT   2
 
#define LONG_BITS   (sizeof(long) << 3)
 
#define NUM_LONGS(bits)   (((bits) + LONG_BITS - 1) / LONG_BITS)
 

Functions

static bool testBit (long bit, const long *array)
 

Macro Definition Documentation

◆ ABS_CNT

#define ABS_CNT   (ABS_MAX+1)

Definition at line 65 of file qevdevtouchhandler.cpp.

◆ ABS_MT_POSITION_X

#define ABS_MT_POSITION_X   0x35 /* Center X ellipse position */

Definition at line 56 of file qevdevtouchhandler.cpp.

◆ ABS_MT_POSITION_Y

#define ABS_MT_POSITION_Y   0x36 /* Center Y ellipse position */

Definition at line 59 of file qevdevtouchhandler.cpp.

◆ ABS_MT_PRESSURE

#define ABS_MT_PRESSURE   0x3a

Definition at line 71 of file qevdevtouchhandler.cpp.

◆ ABS_MT_SLOT

#define ABS_MT_SLOT   0x2f

Definition at line 62 of file qevdevtouchhandler.cpp.

◆ ABS_MT_TOUCH_MAJOR

#define ABS_MT_TOUCH_MAJOR   0x30 /* Major axis of touching ellipse */

Definition at line 53 of file qevdevtouchhandler.cpp.

◆ ABS_MT_TRACKING_ID

#define ABS_MT_TRACKING_ID   0x39 /* Unique ID of initiated contact */

Definition at line 68 of file qevdevtouchhandler.cpp.

◆ input_event_sec

#define input_event_sec   time.tv_sec

Definition at line 27 of file qevdevtouchhandler.cpp.

◆ input_event_usec

#define input_event_usec   time.tv_usec

Definition at line 31 of file qevdevtouchhandler.cpp.

◆ LONG_BITS

#define LONG_BITS   (sizeof(long) << 3)

Definition at line 162 of file qevdevtouchhandler.cpp.

◆ NUM_LONGS

#define NUM_LONGS (   bits)    (((bits) + LONG_BITS - 1) / LONG_BITS)

Definition at line 163 of file qevdevtouchhandler.cpp.

◆ SYN_MT_REPORT

#define SYN_MT_REPORT   2

Definition at line 74 of file qevdevtouchhandler.cpp.

Function Documentation

◆ testBit()

static bool testBit ( long  bit,
const long *  array 
)
inlinestatic

Definition at line 166 of file qevdevtouchhandler.cpp.

References LONG_BITS.