Android overlay to grab ALL touch, and pass them on?

前端 未结 4 1610
我寻月下人不归
我寻月下人不归 2020-11-28 08:33

I\'m basically trying to get all touch event data from something like a system overlay, move my sprites around based on this touch data, then allow the OS/homescreen/browser

4条回答
  •  死守一世寂寞
    2020-11-28 09:11

    You can use the GestureOverlayView, if you want to hide the lines it draws you can set the color to Transparent #00000000 so it doesn't show up, and then you can capture all touches, and gestures.

    http://developer.android.com/resources/articles/gestures.html

提交回复
热议问题