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

网站上地图是怎样做的网络宣传渠道有哪些

网站上地图是怎样做的,网络宣传渠道有哪些,安徽龙山建设有限公司网站,代理网络阅卷测试内核input 事件测试程序。 getevent -lt 命令查看注册的是是event0/1/2/3/4 中的哪一个。 gcc input_test.c -o input_test 编译成可执行程序。将编译的input_test#xff0c;U盘或ADB push到系统里面#xff0c;chmod 777 input_test 在 ./input_test input_test.c #…测试内核input 事件测试程序。 getevent -lt 命令查看注册的是是event0/1/2/3/4 中的哪一个。 gcc input_test.c -o input_test 编译成可执行程序。将编译的input_testU盘或ADB push到系统里面chmod 777 input_test 在 ./input_test input_test.c #include stdlib.h #include poll.h #include unistd.h #include stddef.h #include stdio.h #include fcntl.h #include sys/ioctl.h #include hcuapi/input.h #include kernel/lib/console.h#define BUF_SIZE 1024static void print_help(void) {printf(***********************************\n);printf(input test cmds help\n);printf(\tfor example : input_test -i 1\n);printf(\ti 1 means event1\n);printf(***********************************\n); }static int input_test(int argc, char *argv[]) {int fd;struct input_event t;struct pollfd pfd;char input_buf[BUF_SIZE];char *s /dev/input/event;long tmp;int x 0, y 0, z0;int event_num -1;char ch;opterr 0;optind 0;while((ch getopt(argc, argv, hi:)) ! EOF){switch (ch) {case h:print_help();return 0;case i:tmp strtoll(optarg, NULL,10);event_num tmp;break;default:printf(Invalid parameter %c\r\n, ch);print_help();return -1;}}if(event_num -1){print_help();return -1;}sprintf(input_buf,/dev/input/event%d,event_num);fd open(input_buf, O_RDONLY);pfd.fd fd;pfd.events POLLIN | POLLRDNORM;if(fd 0){printf(cant open %s\n,input_buf);return -1;}while (1) {if (poll(pfd, 1, -1) 0)continue;if (read(fd, t, sizeof(t)) ! sizeof(t))continue;printf(type:%d, code:%d, value:%ld\n, t.type, t.code, t.value);if (t.type EV_KEY) {printf(key %d %s\n, t.code,(t.value) ? Pressed : Released);if (t.code KEY_POWER !t.value) {while (read(fd, t, sizeof(t)) sizeof(t));break;}}else{if (t.type EV_ABS){if (t.type EV_ABS t.code ABS_X) {x t.value;}if (t.type EV_ABS t.code ABS_Y) {y t.value;}if (t.type EV_ABS t.code ABS_Z) {z t.value;}}if (t.type EV_SYN) {printf((%4d %4d %4d)\n,x,y,z);}}}close(fd);return 0; }CONSOLE_CMD(input, NULL, input_test, CONSOLE_CMD_MODE_SELF, input test, press power to exit test)
http://www.hkea.cn/news/14576869/

相关文章:

  • gta5单机买房子网站在建设网站的实施方案
  • 电商网站建设的目标做网站必须会php吗
  • 网站建设技术咨询协议wordpress分类目录样式
  • 合肥seo建站做外贸没有网站
  • 企业网络营销的优势济南seo推广
  • 建设网站所需要的基础知识做艺术教育类网站如何申请
  • 电子商务网站建设交印花税吗江西建设工程信息网
  • oss做下载网站网站开发 jsp
  • 网站后台是怎么做出来的wordpress修改html代码
  • 受欢迎的建网站哪家好中国设计者联盟官网
  • 聊城做网站哪家好wordPress如何设置
  • 网站百度快照Wix网站开发 工作室
  • 做招聘和求职都需要哪些网站建设监督网站
  • 公司网站搜索引擎排名做模型的网站
  • 厦门网站排名优化软件做金融培训的网站
  • 如何快速提升网站pr一个人免费观看在线高清国语
  • 国内python 做的网站郑州专业做网站公
  • 网站建设 知乎怀化网站建设有哪些
  • 暗网做网站免费校园网站建设
  • 平台门户网站建设方案郑州市广告牌制作
  • 移动网站建设规定泉州网站建设 乐本园
  • 网站建设的比较合理的流程wordpress postviews
  • wordpress火车头发布规则seo经验
  • 网站域名备案地址wordpress悬浮音乐
  • 做期货新闻比较好的网站最新军事新闻报道
  • 网站备案简单吗设计公司工作室创业规划
  • 搭建网站多少钱wordpress淘宝客主题带条件筛选
  • 网站联盟系统最近国际新闻50条
  • 网站不同时期的优化工作该怎么做手机可以做网站
  • 做瞹瞹网站做视频网站如何赚钱