(1)使用 adb shell getevent 查看输入事件:/dev/input/event*
http://www.2cto.com/kf/201412/361281.html
add device 1: /dev/input/event5
name: "m_acc_input"
add device 2: /dev/input/event4
name: "hwmdata"
add device 3: /dev/input/event3
name: "mtk-tpd-kpd"
add device 4: /dev/input/event2
name: "mtk-tpd"
add device 5: /dev/input/event1
name: "ACCDET"
add device 6: /dev/input/event0
name: "mtk-kpd"
/dev/input/event5: 0003 0000 fffffff7
(2)cat /proc/bus/input/devices
I: Bus=0019 Vendor=2454 Product=6500 Version=0010
N: Name="mtk-kpd"
P: Phys=
S: Sysfs=/devices/bus.2/10003000.KP/input/input0
U: Uniq=
H: Handlers=event0 gpufreq_ib
B: PROP=0
B: EV=3
B: KEY=80 1f0400 0 40300800 1c0840 0 0 0
I: Bus=0019 Vendor=0000 Product=0000 Version=0000
N: Name="ACCDET"
P: Phys=
S: Sysfs=/devices/virtual/input/input1
U: Uniq=
H: Handlers=event1 gpufreq_ib
B: PROP=0
B: EV=3
B: KEY=40 0 0 0 0 0 0 0 0 0 0 80 0 78 0 40c0000 0 0 0
I: Bus=0000 Vendor=0000 Product=9147 Version=1040
N: Name="mtk-tpd"
P: Phys=
S: Sysfs=/devices/virtual/input/input2
U: Uniq=
H: Handlers=event2 gpufreq_ib
B: PROP=2
B: EV=b
B: KEY=400 0 0 0 2000000 1000 40000800 100000 0 0 0
B: ABS=2630000 1000003
I: Bus=0019 Vendor=0001 Product=0001 Version=0100
N: Name="mtk-tpd-kpd"
P: Phys=
S: Sysfs=/devices/virtual/input/input3
U: Uniq=
H: Handlers=event3 gpufreq_ib
B: PROP=0
B: EV=3
B: KEY=2000000 1000 40000800 0 0 0 0
I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="hwmdata"
P: Phys=
S: Sysfs=/devices/virtual/input/input4
U: Uniq=
H: Handlers=event4 gpufreq_ib
B: PROP=0
B: EV=5
B: REL=2
I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="m_acc_input"
P: Phys=
S: Sysfs=/devices/virtual/input/input5
U: Uniq=
H: Handlers=event5 gpufreq_ib
B: PROP=0
B: EV=d
B: REL=1
B: ABS=107