首页| 论坛| 消息

标题:串口触摸屏
作者:chenxiaoping
日期:2009-10-13 17:52
内容:

qtopia-core-4.5.2 怎样修改可以支持串口触摸屏,我已经对Qmouselinuxtp.cpp 喝Qmouselinuxtp.h
做了修改,#define QT_QWS_IPAQ
#define QT_QWS_IPAQ_RAW
#include "qmouselinuxtp_qws.h"
#ifndef QT_NO_QWS_MOUSE_LINUXTP
#include "qwindowsystem_qws.h"
#include "qsocketnotifier.h"
#include "qtimer.h"
#include "qapplication.h"
#include "qscreen_qws.h"
#include
#include
#include
#include
#include
#include
#include
#include
#include
QT_BEGIN_NAMESPACE
#if defined(QT_QWS_IPAQ)
#define QT_QWS_IPAQ_RAW
#define QT_QWS_SCREEN_COORDINATES
typedef struct {
unsigned short pressure;
unsigned short x;
unsigned short y;
unsigned short pad;
} TS_EVENT;
#elif defined(QT_QWS_EBX)
#define QT_QWS_EBX_RAW
#define QT_QWS_SCREEN_COORDINATES
#ifndef QT_QWS_SHARP
typedef struct {
unsigned short pressure;
unsigned short x;
unsigned short y;
unsigned short pad;
} TS_EVENT;
#else
typedef struct {
long y;
long x;
long pressure;
long long millisecs;
} TS_EVENT;
#define QT_QWS_TP_SAMPLE_SIZE 10
#define QT_QWS_TP_MINIMUM_SAMPLES 4
#define QT_QWS_TP_PRESSURE_THRESHOLD 500
& ..


#1 [rqzrqh 10-13 21:49]
不用这么麻烦,在编译QT库的时候链接tslib,板子上其余的设置看你自己的了
#2 [chenxiaoping 10-14 18:34]
现在是串口触摸屏啊,

回复 发表
主题 版块