惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Attack and Defense Labs
Attack and Defense Labs
The GitHub Blog
The GitHub Blog
C
Check Point Blog
博客园_首页
MongoDB | Blog
MongoDB | Blog
N
Netflix TechBlog - Medium
F
Full Disclosure
Microsoft Security Blog
Microsoft Security Blog
爱范儿
爱范儿
Recent Announcements
Recent Announcements
阮一峰的网络日志
阮一峰的网络日志
G
GRAHAM CLULEY
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
T
Threat Research - Cisco Blogs
C
Cybersecurity and Infrastructure Security Agency CISA
V
Vulnerabilities – Threatpost
K
Kaspersky official blog
博客园 - 司徒正美
S
Schneier on Security
T
The Exploit Database - CXSecurity.com
Project Zero
Project Zero
云风的 BLOG
云风的 BLOG
Cisco Talos Blog
Cisco Talos Blog
Know Your Adversary
Know Your Adversary
雷峰网
雷峰网
V
V2EX - 技术
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Spread Privacy
Spread Privacy
罗磊的独立博客
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
S
Security Affairs
SecWiki News
SecWiki News
Schneier on Security
Schneier on Security
O
OpenAI News
Jina AI
Jina AI
PCI Perspectives
PCI Perspectives
Cyberwarzone
Cyberwarzone
Y
Y Combinator Blog
Apple Machine Learning Research
Apple Machine Learning Research
B
Blog RSS Feed
I
InfoQ
D
Docker
P
Palo Alto Networks Blog
Recorded Future
Recorded Future
M
MIT News - Artificial intelligence
博客园 - Franky
B
Blog
Scott Helme
Scott Helme
博客园 - 叶小钗
D
DataBreaches.Net

博客园 - Big Angel

N97 Firmware Update to V20 被PM了 如何使用CImageEncoder进行图片压缩转换 小说Symbian的签名 Carbide C++ 2.0 Released 如何向Symbian C++程序中添加多语言支持 说说Hakone MX Revolution大革命入手 不能要求自己太严格了 Lie to me不错 Google开始加大推荐手机软件的力度 诺基亚2009挑战赛和Ovi Store Symbian UI 架构分类 微博客真的会流行么 如何升级Symbian Carbide C++的GCC编译器版本 QT Opensource Edition for Windows CE Installation with Visual Studio 2005 设计模式:浅谈行为模式State(C/C++ C#) Flickr WallPaper 红黑的宿命(米兰夺冠庆祝贴)
如何在S60 5th中模拟触摸事件 - Big Angel
Big Angel · 2009-05-07 · via 博客园 - Big Angel

Tested on Nokia 5800 Xpress Music 

需要能力:SwEvent

1. 在"e32event.h"中,有对TRawEvent类的定义,其中TType这个枚举类型中包含了各种硬件级的事件,包括触摸和键盘等操作.
 EButton1Down
 EButton1Up
代表了在触摸屏设备上的开始接触触摸屏和离开触摸屏的事件。


2. 使用下面代码你可以模拟出各种触摸事件:

1  TRawEvent lEventDown;
2  lEventDown.Set(TRawEvent::EButton1Down, X, Y);
3  UserSvr::AddEvent(lEventDown);


 //可能需要添加一些延迟,或者通过程序逻辑来控制

1  TRawEvent lEventUp;
2  lEventUp.Set(TRawEvent::EButton1Up, X, Y);
3  UserSvr::AddEvent(lEventUp);


3. 请注意在触摸屏手机上,坐标点X,Y的起始点(0,0)默认情况下是针对横屏的,所以某些时候需要必要的坐标转换。