MTK 多点触发的支持 Multi-Touch FrameWork

263 篇文章 2 订阅

Capacity Touch Panel

– True multi-touch panel with finger (The multi-finger position is exact)

– Fake multi-touch panel with finger (The multi-finger position maybe wrong, you could use gesture only)

• The red is actual finger position, the blue is the position driver sends to MMI

▪ Resistance Touch Panel

– Just Single touch with pen or finger

▪ How to know the touch panel category?

– Just refer to project makefile to check

TOUCH_PANEL_SUPPORT

 

– True multi-touch panel

• TOUCH_PANEL_SUPPORT = CTP_XXX_TRUE_MULTIPLE

– Fake multi-touch panel

• TOUCH_PANEL_SUPPORT = CTP_XXX_FAKE_MULTIPLE

– Common compile option

• __TOUCH_PANEL_CAPACITY__

▪ Resistance Touch Panel

– TOUCH_PANEL_SUPPORT = TP_INTERNAL

 

Touch event mode

▪ Default behavior is Single touch mode: we just send the first finger position to the proc.

▪ Handwriting is always single mode.

▪ Multi-Mode is valid by call mmi_frm_set_touch_mode(…), we will send all the fingers position to the proc (at most five)

▪ Usage:

▪ mmi_frm_set_touch_mode(mmi_frm_touch_mode mode)

 

 

Finger id identifies if the event is a new finger

▪ For example:

– finger 1 down the id is 1, finger 2 down the id is 2, when finger 1 up and then finger 1 down, its id is 3

– area is for factory mode to test the touch panel.

 

When there are sequential move events, we will send several move events together to the proc

– For example: Finger 1 touch data, merge_num =2, so we will send 2 move events to the proc, these events are in merge_points(not include the current position).

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值