ABS_MT_POSITION_X and Y counted more than once when multi-touching
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mtdev (Ubuntu) |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
Hi mtdev developers,
I use mtdev "read_mtdev.cpp" in the test.tar.bz2 to get ABS_MT_POSITION_X and ABS_MT_POSITION_Y sample "2s_zoom_
But ABS_MT_POSITION_X and Y counted more than once for each slot "sample_plot.cpp", the plot chart shown as "2slots_
When ./sample_plot 2s_zoom_
to only show slot[0] as "slot0_
When ./sample_plot 2s_zoom_
to only show slot[1] as "slot1_
My question is whether or not I process the ABS_MT_POSITION_X and Y for EV_ABS motion event type in "m_process_
I read the source code "xf86-input-evdev" http://
It mentioned that
MT axes are counted twice - once as ABS_X (which the kernel keeps for
backwards compatibility), once as ABS_MT_POSITION_X. So we need to keep a
mapping of those axes to make sure we only count them once
It means I have to filter or remove some _X and _Y from the sample ? HOWTO : other issue;
You can use scons http://
"sample_slot.cpp" use Vtk http://
Lenovo-IdeaPad-Yoga use protocol B /www.kernel. org/doc/ Documentation/ input/multi- touch-protocol. txt
https:/
so when ABS_MT_SLOT new contact packets received, ABS_MT_POSITION_X/Y cache should be clear.