Skip to content

C++ wrapper in Windows for easy access to the laptop touch pad.

License

Notifications You must be signed in to change notification settings

yabadabu/touchpad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Touchpad

C++ wrapper in Windows for easy access to the laptop touchpad using the synaptics SDK.

Motivation

I was looking for something easy to integrate to work with the laptop touchpad and that was able to detect at least two fingers, zoom and pan.

Example usage

  TouchPad pad;
  if (!pad.start()) 
    return;
  while (true) {
    if (pad.update()) {  // New data arrived..
      printf("Fingers:%d Action:%d Zoom:%f Pan:%f %f\r", pad.nfingers, pad.action, pad.zoom_amount, pad.pan_amount.x, pad.pan_amount.y);
      // pad.fingers[i] to access each individual finger.
    }
  }

Status

  • Runs on Windows (x64). VC2017 sample solution included
  • Support up to 4 fingers
  • Detects panning & zooming actions
  • No CMakefile, this should be supereasy to integrate. Link against the two libs inside the touchpad/lib folder (it's the same lib for debug and release configurations)
  • SynCOM.dll must be accesible to the exe.
  • The geometry.h/cpp is not really needed, you probably have something similar.

About

C++ wrapper in Windows for easy access to the laptop touch pad.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published