Tune Gestures Parameters (Compact 2013)

3/26/2014

You can tune the behavior of the built-in gesture recognizer by calling the SystemParametersInfo function to set recognition parameters. You can control such things as:

  • The maximum period of touch contact for a gesture to be recognized as a flick.
  • The minimum period of touch contact for a gesture to be recognized as a hold.
  • The minimum travel distance of touch contact for a gesture to be recognized as a flick.

You call it separately for each gesture type (pan, scroll, hold, select, double select).

You pass a GESTUREMETRICS structure in the call to SystemParametersInfo after you set the gesture type ID and other parameter values in the structure. For more information about controlling gesture behavior, see SystemParametersInfo for Gestures. For general information about SystemParametersInfo and its non-gesture uses, see SystemParametersInfo.

See Also

Concepts

Gesture Applications