umer0586 / SensorServer

Android app which let you stream various phone's sensors to websocket clients
GNU General Public License v3.0
278 stars 31 forks source link

Touch screen coordinates as sensor (Enhancement) #25

Closed srbhptl39 closed 1 year ago

srbhptl39 commented 1 year ago

It would be great to get screen touch points as x, y coordinates in realtime using sockets. Additional could be Multi point touch stream.

umer0586 commented 1 year ago

What a coincidence! I had been contemplating the very same functionality, and it's already prioritized in my existing TODO list.

umer0586 commented 1 year ago

The app now includes support for a simple touch sensor. If you connect a websocket client to /touchscreen, you will receive information about touch actions in a clear format. This information will be in JSON style, like this:

{
 "x" : 23,
 "y" : 100,
 "action" : "ACTION_MOVE or ACTION_UP or ACTION_DOWN"
}

Feature will be available in next release !