当前位置:   article > 正文

ADB 模拟触摸和按键_adb触摸命令

adb触摸命令

解锁

adb shell input keyevent 82

查看设备与与event的对应关系

cat /proc/bus/input/devices

getevent获取屏幕输入事件,

getevent /dev/input/event1

通过input tap命令模拟触摸屏幕

input tap 600 800

模拟的是滑动事件

input swipe <x1> <y1> <x2> <y2>

input swipe 100 800 700 800

每行代表的类型和值如下:

EV_XXX   EVENTS   VALUE

#define EV_SYN            0x00
#define EV_KEY            0x01
#define EV_REL            0x02
#define EV_ABS            0x03

/*
 * Synchronization events.
 */

#define SYN_REPORT        0
#define SYN_CONFIG        1
#define SYN_MT_REPORT        2
#define SYN_DROPPED     

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/article/detail/56483
推荐阅读
相关标签
  

闽ICP备14008679号