Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm considering getting a Nexus 7 to do some multi-touch development on Ubuntu in the run-up to 13.04 (i.e., now :-).

What APIs, /dev files, or protocols are available, or could be made available with not too much work on my part? What data is available from the device?

The data I want to get my hands on is -- if I can -- the same as I get from /dev/uinput/event* from an Apple Magic Trackpad, viz:

  1. positions of all touches (could be as many as 10 simultaneous touches, but much more typically 6 or fewer)
  2. their size/pressure (in both x and y directions)
  3. their angle
  4. their identity -- i.e. an integer that is somewhat reliably preserved across touch events, for as long as a finger doesn't lift off the surface

Not all of this data is essential -- but the more of it there is, the merrier.

share|improve this question

1 Answer 1

up vote 5 down vote accepted

The touchscreen driver emits multitouch input events.

These tools give me x/y position, touch ID and I think pressure when running them with the appropriate device node name

xinput --test
evtest

I am not sure there are libs or APIs besides talking to dev directly though.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.