Moving mouse pointer on Android screen programmatically

后端 未结 2 1747
独厮守ぢ
独厮守ぢ 2021-01-02 15:05

I am developing an Android application where I would like to move the \"mouse\" pointer/cursor on an Android tablet. I know this is possible because when I connect a mouse

2条回答
  •  伪装坚强ぢ
    2021-01-02 15:49

    It is possible to control the mouse pointer in Android programmatically via the AccessibilityService API.

    Here is an example app in the play store: EVA Facial Mouse app

    Here is a github repository for controlling the mouse pointer via WiFi (API level 21): chetbox/android-mouse-cursor

    I have forked and updated the latter repo to API level 27: Ra-Na/android-mouse-cursor

提交回复
热议问题