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

网站程序问题网站推广排名教程

网站程序问题,网站推广排名教程,珠海移动网站建设费用,新疆兵团建设局的网站屏规格书: dts配置: 首先要确保CONFIG_I2C_HID宏打开,i2c-hid-core.c 文件才能编译进去代码。规格书vendor product 分别为0x2d1f 和0x0165 来区别,不至于影响到整体的hid其他设备。 i2c-hid-dev10 { compatible "hid-…

屏规格书:
在这里插入图片描述

dts配置:
首先要确保CONFIG_I2C_HID宏打开,i2c-hid-core.c 文件才能编译进去代码。规格书vendor product 分别为0x2d1f 和0x0165 来区别,不至于影响到整体的hid其他设备。

   +  i2c-hid-dev@10 {+  compatible = "hid-over-i2c";+	reg = <0x10>;+	hid-descr-addr = <0x0001>;+	interrupt-parent = <&gpio0>;+	interrupts = <6 0x0>;+	post-power-on-delay-ms = <70>;+	vdd = "vdd-supply";+	status ="okay";+ };

hid-input.c 文件里面根据实际情况,是否实际需要x,y坐标是否需要反,或x , 或y 反,或x,y都反。
hidinput_configure_usage函数。这里面x,y需要对调,而且x,还需要最大变最小,最小变最大逻辑 20320-value

static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_field *field,struct hid_usage *usage)
{+if((device->vendor==0x2d1f)&&(device->product==0x0123))+{+       if(b==20320)+       {+       	b=15240;+       }+      else if(b==15240){+          b= 20320;+       }+}if (field->application == HID_GD_GAMEPAD || field->application == HID_GD_JOYSTICK)input_set_abs_params(input, usage->code, a, b, (b - a) >> 8, (b - a) >> 4);else	input_set_abs_params(input, usage->code, a, b, 0, 0);(!test_bit(usage->code, input->key)) == value)input_event(input, EV_MSC, MSC_SCAN, usage->hid);input_event(input, usage->type, usage->code, value);//input_event(input, usage->type, usage->code, value);+ if((hid->vendor==0x2d1f)&&(hid->product==0x0123))+ {+	    if(usage->code == ABS_X)+	     input_event(input, usage->type, ABS_Y, value);+      else if(usage->code == ABS_Y)+	     input_event(input, usage->type, ABS_X, 20320-value);+	    else+	       input_event(input, usage->type, usage->code, value);+  }+  else+ {+     input_event(input, usage->type, usage->code, value);+ }if ((field->flags & HID_MAIN_ITEM_RELATIVE) &&usage->type == EV_KEY && value) {}

frameworks/base/data/keyboards/Vendor_2d1f_Product_0165.idc 添加此文件

# Copyright (C) 2010 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.#
# Emulator keyboard configuration file #1.
#
#touch.orientationAware touch x ytouch.deviceType = touchScreen
touch.orientationAware = 1keyboard.layout = qwerty
keyboard.characterMap = qwerty
keyboard.orientationAware = 1
keyboard.builtIn = 1cursor.mode = navigation
cursor.orientationAware = 1

屏规格书

http://www.hkea.cn/news/186053/

相关文章:

  • 大型网站建设机构津seo快速排名
  • 建设证件查询官方网站宁波做网站的公司
  • 那些网站招聘在家里做的客服网店推广策略
  • 湘西 网站 建设 公司sem代运营托管公司
  • 用css为wordpress排版西安seo外包服务
  • vs2005做网站百度推广官方网站登录入口
  • 乐从网站建设公司北京seo优化推广
  • 如何在网上接做网站的小项目市场监督管理局电话
  • 淘宝购物站优化
  • 石家庄最新疫情轨迹河南网站优化公司哪家好
  • 网站色彩搭配服务器ip域名解析
  • 哪个网站专业做安防如何注册域名网站
  • 穆棱市住房和城乡建设局网站关键词词库
  • 成都网站建设市场什么是网络营销的核心
  • 深圳找人做网站廊坊优化外包
  • 衡阳市城市建设投资有限公司网站湖南企业seo优化报价
  • css做网站常用百度权重优化软件
  • 合合肥网站建设制作网站用什么软件
  • 杭州网站设计公司推荐网络推广与优化
  • 移动惠生活app下载网址荆门网站seo
  • 做网站很赚钱吗关键词自助优化
  • wordpress小工具里的用户中心南京谷歌优化
  • 网站开发中茶叶网络营销策划方案
  • 临海市住房与城乡建设规划局 网站目前最新的营销模式有哪些
  • 高校建设网站的特色如何建立一个网站
  • 公司做网站域名归谁搜索引擎营销策划方案
  • 怎么做外贸个人网站seo综合查询工具可以查看哪些数据
  • 黑客网站盗qq百度seo公司整站优化
  • 网页设计代码不能运行seo的中文名是什么
  • 灵溪网站建设外贸网站谷歌seo