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
qevdevtouchhandler.cpp File Reference

(29115a74963f87ceab6a7c762a758be94a98441a)

#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 <QtCore/qpointer.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)

Functions

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

Macro Definition Documentation

◆ ABS_CNT

#define ABS_CNT   (ABS_MAX+1)

Definition at line 67 of file qevdevtouchhandler.cpp.

◆ ABS_MT_POSITION_X

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

Definition at line 58 of file qevdevtouchhandler.cpp.

◆ ABS_MT_POSITION_Y

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

Definition at line 61 of file qevdevtouchhandler.cpp.

◆ ABS_MT_PRESSURE

#define ABS_MT_PRESSURE   0x3a

Definition at line 73 of file qevdevtouchhandler.cpp.

◆ ABS_MT_SLOT

#define ABS_MT_SLOT   0x2f

Definition at line 64 of file qevdevtouchhandler.cpp.

◆ ABS_MT_TOUCH_MAJOR

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

Definition at line 55 of file qevdevtouchhandler.cpp.

◆ ABS_MT_TRACKING_ID

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

Definition at line 70 of file qevdevtouchhandler.cpp.

◆ input_event_sec

#define input_event_sec   time.tv_sec

Definition at line 29 of file qevdevtouchhandler.cpp.

◆ input_event_usec

#define input_event_usec   time.tv_usec

Definition at line 33 of file qevdevtouchhandler.cpp.

◆ LONG_BITS

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

Definition at line 164 of file qevdevtouchhandler.cpp.

◆ NUM_LONGS

#define NUM_LONGS ( bits)
Value:
(((bits) + LONG_BITS - 1) / LONG_BITS)
#define LONG_BITS
GLenum GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const void * bits

Definition at line 165 of file qevdevtouchhandler.cpp.

◆ SYN_MT_REPORT

#define SYN_MT_REPORT   2

Definition at line 76 of file qevdevtouchhandler.cpp.

Function Documentation

◆ testBit()

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

Definition at line 168 of file qevdevtouchhandler.cpp.