当前位置: 首页 > news >正文

oss静态网站托管成都做网站设计哪家便宜

oss静态网站托管,成都做网站设计哪家便宜,上海市住房和城乡建设厅官方网站,公司简介模板表格一#xff0c;问题描述#xff1a; android机器要求接两个屏#xff08;lvdsmipi#xff09;两个usb tp要实现双屏异触。由于mipi的方向和lvds方向转成一样的了。两个usb tp的方向在异显示的时候也要作用一样。这个时候要根据pid和vid修改触摸上报的数据。usb tp有通用的触…一问题描述 android机器要求接两个屏lvdsmipi两个usb tp要实现双屏异触。由于mipi的方向和lvds方向转成一样的了。两个usb tp的方向在异显示的时候也要作用一样。这个时候要根据pid和vid修改触摸上报的数据。usb tp有通用的触摸驱动/kernel/drivers/hid/hid-multitouch.c。 即通过vid pid区分 二修改方法 1. device/rockchip/rk3288/下添加idc文件 Vendor_222a_Product_0001.idc#***************************************************** # Input Device Configuration File for the generaltouch touch screen. #*****************************************************# Basic Parameters touch.deviceType touchScreen touch.orientationAware 1keyboard.layout qwerty keyboard.characterMap qwerty keyboard.orientationAware 1 keyboard.builtIn 1cursor.mode navigation cursor.orientationAware 1device.internal 0Vendor_0457_Product_0819.idc#***************************************************** # Input Device Configuration File for the generaltouch touch screen. #*****************************************************# Basic Parameters touch.deviceType touchScreen touch.orientationAware 1keyboard.layout qwerty keyboard.characterMap qwerty keyboard.orientationAware 1 keyboard.builtIn 1cursor.mode navigation cursor.orientationAware 1device.internal 12. device/rockchip/rk3288/device.mk,拷贝到系统中 # for usb tp PRODUCT_COPY_FILES \device/rockchip/rk3288/Vendor_222a_Product_0001.idc:system/usr/idc/Vendor_222a_Product_0001.idc \device/rockchip/rk3288/Vendor_0457_Product_0819.idc:system/usr/idc/Vendor_0457_Product_0819.idc3. kernel/drivers/hid/hid-multitouch.c修改驱动 diff --git a/kernel/drivers/hid/hid-multitouch.c b/kernel/drivers/hid/hid-multitouch.c old mode 100644new mode 100755 index 9de379c1b3..b8456b1e50 --- a/kernel/drivers/hid/hid-multitouch.cb/kernel/drivers/hid/hid-multitouch.c-98,7 98,23 struct mt_fields {unsigned usages[HID_MAX_FIELDS];unsigned int length; }; - #define GTP_SWAP(x, y) do{\typeof(x) z x;\x y;\y z;\}while (0)#define MAINmGtpChange_X2Y 1 #define MIANmGtp_X_Reverse 1 #define MAINNmGtp_Y_Reverse 0 static int MAINX_max0; static int MAINY_max0;#define AUXmGtpChange_X2Y 1 #define AUXmGtp_X_Reverse 1 #define AUXNmGtp_Y_Reverse 0 static int AUXX_max0; static int AUXY_max0; struct mt_device {struct mt_slot curdata; /* placeholder of incoming data */struct mt_class mtclass; /* our mt device class */-461,6 477,14 static int mt_touch_input_mapping(struct hid_device *hdev, struct hid_input *hi,case HID_UP_GENDESK:switch (usage-hid) {case HID_GD_X:if (hdev-vendor0x0457 hdev-product0x0819){MAINX_max field-logical_maximum; }else if (hdev-vendor0x222a hdev-product 0x0001){AUXX_max field-logical_maximum;}if (prev_usage (prev_usage-hid usage-hid)) {hid_map_usage(hi, usage, bit, max,EV_ABS, ABS_MT_TOOL_X);-476,6 500,14 static int mt_touch_input_mapping(struct hid_device *hdev, struct hid_input *hi,mt_store_field(usage, td, hi);return 1;case HID_GD_Y:if (hdev-vendor0x0457 hdev-product0x0819){MAINY_max field-logical_maximum;}else if (hdev-vendor0x222a hdev-product 0x0001){AUXY_max field-logical_maximum;}if (prev_usage (prev_usage-hid usage-hid)) {hid_map_usage(hi, usage, bit, max,EV_ABS, ABS_MT_TOOL_Y);-613,8 645,10 static int mt_compute_slot(struct mt_device *td, struct input_dev *input)* this function is called when a whole contact has been processed,* so that it can assign it to a slot and store the data there*/ -static void mt_complete_slot(struct mt_device *td, struct input_dev *input) static void mt_complete_slot(struct mt_device *td, struct input_dev *input,struct hid_device *hid_device) {if ((td-mtclass.quirks MT_QUIRK_CONTACT_CNT_ACCURATE) td-num_received td-num_expected)return;-649,7 683,33 static void mt_complete_slot(struct mt_device *td, struct input_dev *input)int major max(s-w, s-h) 1;int minor min(s-w, s-h) 1; - input_event(input, EV_ABS, ABS_MT_POSITION_X, s-x); if (hid_device-vendor0x0457 hid_device-product0x0819) {#if MAINmGtpChange_X2YGTP_SWAP(s-x, s-y);#endifif(MIANmGtp_X_Reverse){s-x MAINX_max -s-x; }if(MAINNmGtp_Y_Reverse){s-y MAINY_max - s-y;} } else if (hid_device-vendor0x222a hid_device-product0x0001) {#if AUXmGtpChange_X2YGTP_SWAP(s-x, s-y);#endifif(AUXmGtp_X_Reverse){s-x AUXX_max -s-x;}if(AUXNmGtp_Y_Reverse){s-y AUXY_max - s-y;} }input_event(input, EV_ABS, ABS_MT_POSITION_X, s-x);input_event(input, EV_ABS, ABS_MT_POSITION_Y, s-y);input_event(input, EV_ABS, ABS_MT_TOOL_X, s-cx);input_event(input, EV_ABS, ABS_MT_TOOL_Y, s-cy);-752,7 812,7 static void mt_process_mt_event(struct hid_device *hid, struct hid_field *field,if (usage-usage_index 1 field-report_count) {/* we only take into account the last report. */if (usage-hid td-last_slot_field) - mt_complete_slot(td, field-hidinput-input);mt_complete_slot(td, field-hidinput-input,hid);}}定义宏参数含义 define MAINmGtpChange_X2Y 1 //为主屏tp的x和y互换宏定义 define MIANmGtp_X_Reverse 1 //为主屏tp的x反向宏定义 define MAINNmGtp_Y_Reverse 0 //为主屏tp的y反向宏定义 define AUXmGtpChange_X2Y 1 //为副屏tp的x和y互换宏定义 define AUXmGtp_X_Reverse 1 //为副屏tp的x反向宏定义 define AUXNmGtp_Y_Reverse 0 //为副屏tp的y反向宏定义 以上修改在rk3288_7.1上实测有效其他平台可参考修改整体实现方法类似。 关于idc文件控制触摸屏的属性可参考链接Android系统 调试usb接口触摸屏问题
http://www.hkea.cn/news/14449016/

相关文章:

  • 网站链接提交wordpress页面显示错乱
  • 北京十佳网站建设网站的数据库在哪里
  • 响应式网站价格wordpress极验
  • 西安网站建设罗鑫asp网站开发基础
  • 网站域名选择的原则wordpress主题ashley
  • 龙口建设局网站户型单页设计
  • 网页设计素材与效果图泰安seo排名
  • 西部数码上传网站网站制作是什么公司
  • 校园网站建设成本加快wordpress访问速度
  • 石家庄市建设厅网站怎么用vscode做网站
  • c 做网站加载多个图片网站开发工具论文
  • 怎样做网站推销产品著名网页设计师及作品
  • 网站建设需求分析调研调查表广州网站建设丿新科送推广
  • 中国建设银行官网站黄金部王毅哈尔滨市人社app
  • 国外的网站模板优秀企业门户网站建设
  • 四川省建设岗位注册中心网站河北建设信息平台网站
  • 网站建设中的财务预算WordPress支持的数据库
  • 如何在自己做的网站中顶置内容做电影网站服务器
  • 深圳品牌网站建设服务网站开发用了哪些技术
  • 做网站需要的导航wordpress找不到对象
  • 网站搭建兼职深圳住房和建设厅网站首页
  • 个人备案可以做企业网站吗事业单位报名网站
  • 旅行社门店做网站嘛手机网站建设制作公司
  • 苏州手机网站seo脑卒中中心建设网站
  • 网站怎样做漂浮wordpress主题换图片
  • 好网站建设公司有哪些小程序开发公司哪里强
  • 怎么用网站做转换服务器ui设计需要学哪些内容
  • 无为县城乡建设局网站首页化妆品wordpress主题
  • 龙岩网站建设较好的公司搜索引擎优化的完整过程
  • 什么是交互式网站开发财税公司网站开发