2 huang1fan98 huang1fan98 于 2016.02.10 17:45 提问

android adb shell getevent -p无法获得0036?

下面是获取到的部分信息:
add device 5: /dev/input/event5
02-10 17:42:12.226 14965 14988 I System.out com.mycompany.myapp7 events:
02-10 17:42:12.226 14965 14988 I System.out com.mycompany.myapp7 0145* 014a*
02-10 17:42:12.236 14965 14988 I System.out com.mycompany.myapp7 0001 : value 0, min 0, max 2214, fuzz 0, flat 0, resolution 0
02-10 17:42:12.256 14965 14988 I System.out com.mycompany.myapp7 002f : value 0, min 0, max 9, fuzz 0, flat 0, resolution 0
02-10 17:42:12.266 14965 14988 I System.out com.mycompany.myapp7 0035 : value 0, min 0, max 1334, fuzz 0, flat 0, resolution 0
02-10 17:42:12.276 14965 14988 I System.out com.mycompany.myapp7 0039 : value 0, min 0, max 65535, fuzz 0, flat 0, resolution 0
02-10 17:42:12.276 14965 14988 I System.out com.mycompany.myapp7 input props:
02-10 17:42:12.286 14965 14988 I System.out com.mycompany.myapp7 add device 6: /dev/input/event6
02-10 17:42:12.286 14965 14988 I System.out com.mycompany.myapp7 events:
02-10 17:42:12.296 14965 14988 I System.out com.mycompany.myapp7 input props:
02-10 17:42:12.316 14965 14988 I System.out com.mycompany.myapp7 add device 7: /dev/input/event7
02-10 17:42:12.391 14965 14988 I System.out com.mycompany.myapp7 events:
02-10 17:42:12.391 14965 14988 I System.out com.mycompany.myapp7 input props:
02-10 17:42:12.391 14965 14988 I System.out com.mycompany.myapp7 add device 8: /dev/input/event2
02-10 17:42:12.396 14965 14988 I System.out com.mycompany.myapp7 events:
02-10 17:42:12.396 14965 14988 I System.out com.mycompany.myapp7 0005 : value 0, min -32768, max 32767, fuzz 0, flat 0, resolution 0
02-10 17:42:12.401 14965 14988 I System.out com.mycompany.myapp7 0007 : value 0, min 0, max 3, fuzz 0, flat 0, resolution 0

3个回答

huang1fan98
huang1fan98   2016.02.13 13:09
已采纳

解决方法是用read而不是readline

devmiao
devmiao   Ds   Rxr 2016.02.10 22:15
huang1fan98
huang1fan98 ..查不到0036
接近 2 年之前 回复
huang1fan98
huang1fan98 ?对啊,查找不到0035
接近 2 年之前 回复
huang1fan98
huang1fan98   2016.02.10 17:49

复制的东西没搞好....是从0035直接跳到0039

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!