- 资源
- 15
- 技术
- 1
- 信用
- 0
- 口袋币
- 1203
- 贡献
- 0
- 在线时间
- 1376 小时
- 最后登录
- 2012-3-28
- 精华
- 0
- 帖子
- 690
- 积分
- 44
- 阅读权限
- 10
- 注册时间
- 2008-9-20
- UID
- 1657450
 
- 资源
- 15
- 信用
- 0
- 口袋币
- 1203
- 技术
- 1
- 注册时间
- 2008-9-20
- 帖子
- 690
- 精华
- 0
- 积分
- 44
- UID
- 1657450
|
发表于 2009-12-4 21:34:46
|显示全部楼层
本帖最后由 lwltuan 于 2010-5-13 08:53 编辑
我已经在我的机器上试验成功了(请下载附件试验)
原帖请见:
http://forum.xda-developers.com/showthread.php?t=593290
一段YouTube 转传到 YouKu上的(实现效果也是这样)
http://v.youku.com/v_show/id_XMTM2MzI2NzMy.html?full=true
牛人 anaadoul 通过SDK ,实现了在电阻屏上的多点触控。
但也不是完全意义上的多点,实际操作时需要一只手指不动,另一只手指滑动。
不过这已经很牛了。。
xda真是牛人多的没法说啊!
图我就不上了,没法上,呵呵
希望大家多回帖支持一下!或者给俺加个分!
下面的代码偶不明白。。
附上代码:
Documentation
How to use the SDK!
create an instanse of the class,
the object wich will detect the mouse clicks MUST have mouse down, up and move.
for example in the demo above the code is as following and i use picturebox-
- publicpartialclassForm1 : Form
- {
- DualTouchSDK.DualTouchSDK SDK = new DualTouchSDK.DualTouchSDK();
- privatevoid Form1_Load(object sender, EventArgs e)
- {
- SDK.Zooming += new DualTouchSDK.DualTouchSDK.MultiTouchEventHandler(SDK_Zooming);
- }
- void SDK_Zooming(DualTouchSDK.MultiTouchEventArgument e)
- {
- // Do the zooming here e.ZoomRatio returns a value which is the % of the zoom < 1 = zoom in, > 1 zoom out.
- }
- privatevoid pictureBox1_MouseDown(object sender, MouseEventArgs e)
- {
- SDK.SetMouseDown(e.X, e.Y);
- }
- privatevoid pictureBox1_MouseMove(object sender, MouseEventArgs e)
- {
- SDK.SetMouseMove(e.X, e.Y);
- }
- privatevoid pictureBox1_MouseUp(object sender, MouseEventArgs e)
- {
- SDK.MouseUp();
- }
- }
复制代码 |
附件: 你需要登录才可以下载或查看附件。没有帐号?注册
-
总评分: 口袋币 + 6
查看全部评分
|