JakeWharton / adb-event-mirror

Mirror the touch/key/button events of one device onto one or more other devices in real-time
Apache License 2.0
885 stars 43 forks source link

Query and match up devices #2

Closed mattprecious closed 4 years ago

mattprecious commented 4 years ago
adb -s emulator-5554 shell getevent
add device 1: /dev/input/event0
  name:     "Power Button"
add device 2: /dev/input/event6
  name:     "virtio_input_multi_touch_6"
add device 3: /dev/input/event3
  name:     "virtio_input_multi_touch_3"
add device 4: /dev/input/event10
  name:     "virtio_input_multi_touch_10"
add device 5: /dev/input/event4
  name:     "virtio_input_multi_touch_4"
add device 6: /dev/input/event1
  name:     "virtio_input_multi_touch_1"
add device 7: /dev/input/event11
  name:     "virtio_input_multi_touch_11"
add device 8: /dev/input/event7
  name:     "virtio_input_multi_touch_7"
add device 9: /dev/input/event5
  name:     "virtio_input_multi_touch_5"
add device 10: /dev/input/event2
  name:     "virtio_input_multi_touch_2"
add device 11: /dev/input/event12
  name:     "qwerty2"
add device 12: /dev/input/event14
  name:     "goldfish_rotary"
add device 13: /dev/input/event9
  name:     "virtio_input_multi_touch_9"
add device 14: /dev/input/event8
  name:     "virtio_input_multi_touch_8"
add device 15: /dev/input/event13
  name:     "AT Translated Set 2 keyboard"
/dev/input/event12: 0001 0014 00000001
/dev/input/event12: 0000 0000 00000000
/dev/input/event12: 0001 0014 00000000
/dev/input/event12: 0000 0000 00000000
/dev/input/event1: 0003 0039 00000000
/dev/input/event1: 0003 0030 0000006f
/dev/input/event1: 0003 003a 00000081
/dev/input/event1: 0003 0035 00004d82
/dev/input/event1: 0003 0036 00000955
/dev/input/event1: 0000 0000 00000000
/dev/input/event1: 0003 003a 00000000
/dev/input/event1: 0003 0039 ffffffff
/dev/input/event1: 0000 0000 00000000
/dev/input/event12: 0001 0074 00000001
/dev/input/event12: 0000 0000 00000000
/dev/input/event12: 0001 0074 00000000
/dev/input/event12: 0000 0000 00000000