git: cyapa - Introduce better three-finger button emulation

Matthew Dillon dillon at crater.dragonflybsd.org
Thu Jan 9 15:08:58 PST 2014


commit 138860753bb03c3734ea42a32a7abd9c13060d65
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Thu Jan 9 15:06:39 2014 -0800

    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.

Summary of changes:
 sys/dev/smbus/cyapa/cyapa.c | 132 ++++++++++++++++++++++++++++++++++++++------
 sys/kern/sys_generic.c      |  15 ++---
 2 files changed, 121 insertions(+), 26 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/138860753bb03c3734ea42a32a7abd9c13060d65


-- 
DragonFly BSD source repository


More information about the Commits mailing list