ubuntu - Detecting absolute finger positions on trackpad -


i'm on 13" macbook pro (model 7,1. mid-2010) , installed ubuntu 12.04 lts. i'm trying make program invokes right-click menu when user clicks bottom right corner of mac trackpad.

the main issue here detecting user's position on trackpad is. of course, rather easy in osx using nstouch:

- (void)touchesbeganwithevent:(nsevent *)event {     nsset *touches = [event touchesmatchingphase:nstouchphasebegan inview:self];     for(nstouch *touch in touches) {         nspoint normalizedposition = touch.normalizedposition;          //points inside `normalizedposition`         //top center: (.5, 1), bottom left: (1, 0)     } } 

however, issue doing same thing within ubuntu (any programming language fine honest). now, i've seen posts this, however, because i've figured out how within osx, don't see question relevant. i've seen this post, however, i'm not looking universal, standardized way detect absolute finger position. honestly, i'd happy ubuntu detecting finger positions only mac-made trackpads. saw this askubuntu post also, answerer (while great summary) seems speaking more universal-wise.

would know how normalizedposition attribute on nstouch within ubuntu (or programming language compiles on ubuntu)?

you can mtdev library. start off evtest figure out input device , information from input device need, use mtdev library access c.

another great library trying (i.e., create zone on trackpad invoke right-click menu up) mtrack library (to save work). has examples accessing information mtdev if want go hunting through code.


Comments