1

i'm trying to figure out how exactly touch events work on android. i know the UI theard manages a Looper that receives touch event Messages through a message queue. but from there on i cant seem to find any documentation. anyone know of any documentation ( or even the flow ) regarding how the touch messages arrive to the queue, or what happens with them after they are dequeued (how MotionEvent's are created?)? 10x.

amirye
  • 147
  • 7
  • Are u looking for the flow from device drivers to message queue or from message queue to applications? – digitizedx Nov 19 '13 at 08:36
  • actually i need both, but either one will be more then welcome – amirye Nov 19 '13 at 12:52
  • 1
    for driver to event queue, you can start looking from EventHub.cpp. It opens and polls the linux Event Devices. EventHub::getEvents is the function to start from. In android source code you can find the files at frameworks/base/services/input/. These files form the libinput.so which handles the input devices. – digitizedx Nov 20 '13 at 10:09

0 Answers0