libhybris/libhybris — pull request #61 by rsalveti (2013-06-03 23:13:38+00:00)
Title: Input: adding initial compat files for input

Compat layer used for Android's input.

Can be tested via android (direct_input_test) and via hybris (test_input).

Notice the path change for the ui headers as well, to make them under hybris/.

Tested with mako, running Ubuntu Touch with libhybris upstream:

phablet@ubuntu-phablet:~$ test_input
...
on_new_event	EventType: 1
device_id: 6
source_id: 4098
action: 0
flags: 0
meta_state: 0
details.motion.event_time: 31935448000
details.motion.pointer_coords.x: 635.586182
details.motion.pointer_coords.y: 755.205017
on_new_event	EventType: 1
device_id: 6
source_id: 4098
action: 2
flags: 0
meta_state: 0
details.motion.event_time: 31945520000
details.motion.pointer_coords.x: 628.590759
details.motion.pointer_coords.y: 752.705994
on_new_event	EventType: 1
device_id: 6
source_id: 4098
action: 2
flags: 0
meta_state: 0
details.motion.event_time: 31955653000
details.motion.pointer_coords.x: 628.091064
details.motion.pointer_coords.y: 752.705994
on_new_event	EventType: 1
device_id: 6
source_id: 4098
action: 2
flags: 0
meta_state: 0
details.motion.event_time: 31965755000
details.motion.pointer_coords.x: 625.592712
details.motion.pointer_coords.y: 751.706360
on_new_event	EventType: 1