Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qevdevtouchhandler.cpp File Reference

(c26994ff1551aa5450383cc51bed9b4d39f973f7)

#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)   (((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 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.

Referenced by QEvdevTouchScreenData::processInputEvent().

◆ ABS_MT_POSITION_Y

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

Definition at line 61 of file qevdevtouchhandler.cpp.

Referenced by QEvdevTouchScreenData::processInputEvent().

◆ ABS_MT_PRESSURE

#define ABS_MT_PRESSURE   0x3a

Definition at line 73 of file qevdevtouchhandler.cpp.

Referenced by QEvdevTouchScreenData::processInputEvent().

◆ ABS_MT_SLOT

#define ABS_MT_SLOT   0x2f

◆ ABS_MT_TOUCH_MAJOR

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

Definition at line 55 of file qevdevtouchhandler.cpp.

Referenced by QEvdevTouchScreenData::processInputEvent().

◆ ABS_MT_TRACKING_ID

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

Definition at line 70 of file qevdevtouchhandler.cpp.

Referenced by QEvdevTouchScreenData::processInputEvent().

◆ 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.

Referenced by testBit().

◆ NUM_LONGS

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

◆ SYN_MT_REPORT

#define SYN_MT_REPORT   2

Definition at line 76 of file qevdevtouchhandler.cpp.

Referenced by QEvdevTouchScreenData::processInputEvent().

Function Documentation

◆ testBit()

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

Definition at line 168 of file qevdevtouchhandler.cpp.

References LONG_BITS.