Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.0 KiB

  1. /********************** ...\twister\inc\twisterdefs.h **********************\
  2. * *
  3. * Macros and data structures for the Twister recognizer *
  4. * (used by Twister, Moth, Grouse, and potentially other modules) *
  5. * *
  6. * Created: December 6, 2001 *
  7. * Author: Petr Slavik, pslavik *
  8. * *
  9. \***************************************************************************/
  10. #ifndef __INCLUDE_TWISTERDEFS_H
  11. #define __INCLUDE_TWISTERDEFS_H
  12. #include "RecTypes.h"
  13. #define MAX_GESTURE_COUNT 256
  14. #define MAX_GESTURE_DWORD_COUNT MAX_GESTURE_COUNT / ( 8*sizeof(DWORD) )
  15. #define MAX_GESTURE_ALTS 5
  16. #define IsSet(index, adw) \
  17. ( adw[(index) >> 5] & (0x0001 << ((index) & 0x001f) ) )
  18. #define Set(index, adw) \
  19. ( adw[(index) >> 5] |= (0x0001 << ((index) & 0x001f) ) )
  20. typedef struct tagGEST_ALTERNATE
  21. {
  22. WCHAR wcGestID;
  23. float eScore;
  24. CONFIDENCE_LEVEL confidence; // CFL_STRONG, CFL_INTERMEDIATE, CFL_POOR
  25. POINT hotPoint;
  26. } GEST_ALTERNATE;
  27. #endif // __INCLUDE_TWISTERDEFS_H