cyapa - Introduce better three-finger button emulation
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 9 Jan 2014 23:06:39 +0000 (15:06 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 9 Jan 2014 23:08:35 +0000 (15:08 -0800)
commit138860753bb03c3734ea42a32a7abd9c13060d65
tree772f12b8c37da51fd71479cafc992e4f2235317a
parentdf0c73d24df1649850542992a4ff938dc1c31244
cyapa - Introduce better three-finger button emulation

* Change the three-finger button emulation such that the third finger that
  you use to tap will emulate the LEFT, MIDDLE, or RIGHT buttons depending
  on its X position relative to the other two fingers that are being held
  down.

  e.g. if you arrange fingers left-to-right A, B, C, and you hold B and C
  on the pad and tap A, that's a LEFT button.  If you hold A and C and
  tap B, that's a middle button, and if you hold A and B and tap C, that's
  a right button.

* This methodology allows all three buttons to be emulated cleanly without
  having to depress the trackpad's physical button.

* Document all jestures.
sys/dev/smbus/cyapa/cyapa.c
sys/kern/sys_generic.c