如何在ARMLinux下使用多点触摸屏
一、如何在ARM Linux下使用多点触摸屏
首e的时候要声明成多点触摸的:
inpu_params(input, ABS_X, 0, pdata->x_res - 1, 0, 0);
input_set_abs_params(input, ABS_Y, 0, pdata->y_res - 1, 0, 0);
input_set_abs_params(input, ABS_MT_POSITION_X,
0, pdata->x_res - 1, 0, 0);
input_set_abs_params(POSITION_Y,
0, pdata->y_res - 1, 0, 0);
error = it_slots(input, MAX_SUPPORT_POINTS);

pdata是board-[mach]. data,如果是3.8以上的内核,你可以用device tree。
其次,提交触摸数据
for (i = 0; i > 6;
if (type == TOUCH_EVENT_RESERVED)
continue;
x = ((posdata.touch[i].xh <> 4) & 0x0f;
down = (type != TOUCH_EVENT_UP);
input_mt_slot(tsdata->input, id);
input_mt_report_slot_statput, MT_TOOL_FINGER, down);
if (!down)
report_abs(tsdata->input, ABS_MT_POSIput_report_abs(tsdata->input, ABS_MT_POSITION_Y, y);
}
input_mt_report_pointer_emulation(tsdata->input, true);
input_sync(tsdata->input);
然后,Buildroot做根文件系统的时候要选上Target packages > Libraries > Hardware handling > mtdev和Target packages > Graphic libraries and applications (graphic/text) > ***.org X Window System > X11R7 Drivers > xf86-input-evdev,网上有很多文章说如何让X支持多点触摸的,那都是过去式了,现在的X和xf86-input-evdev都支持多点触摸。
最后,编译Qt开发包的时候要加上-xinput2选项,在qtbase/examples/touch里能找到触摸屏的样例代码。
二、armpos触摸屏收款机怎么结算?
你好!因为不知道你用的是哪种pos机程序。我只能按照我见过的程序给你一些建议:首先你要确定当天有交易记录,然后在下班时进行结算。一般结算步骤为:按刷卡机…
三、触屏收款机怎么结账
LZ是什么样的触摸收银机?一般触摸屏的使用都差不多