Adb shell getevent method returns twice the value for X and Y on Nexus 4

后端 未结 1 1322
误落风尘
误落风尘 2020-12-01 20:32

I am currently trying to generate a complex gesture via the sendevent command of adb shell. In order to replay a gesture, I recorded the events via the ge

相关标签:
1条回答
  • 2020-12-01 20:37

    Those are input device (i.e. touch screen) coordinates. Touch screen is a separate device which may have a different resolution from the display.

    To check the resolution of your touch screen do

    getevent -il /dev/input/event2 | grep ABS_MT_POSITION
    

    and look at the max values

    0 讨论(0)
提交回复
热议问题