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

/********************** ...\twister\inc\twisterdefs.h **********************\
* *
* Macros and data structures for the Twister recognizer *
* (used by Twister, Moth, Grouse, and potentially other modules) *
* *
* Created: December 6, 2001 *
* Author: Petr Slavik, pslavik *
* *
\***************************************************************************/
#ifndef __INCLUDE_TWISTERDEFS_H
#define __INCLUDE_TWISTERDEFS_H
#include "RecTypes.h"
#define MAX_GESTURE_COUNT 256
#define MAX_GESTURE_DWORD_COUNT MAX_GESTURE_COUNT / ( 8*sizeof(DWORD) )
#define MAX_GESTURE_ALTS 5
#define IsSet(index, adw) \
( adw[(index) >> 5] & (0x0001 << ((index) & 0x001f) ) )
#define Set(index, adw) \
( adw[(index) >> 5] |= (0x0001 << ((index) & 0x001f) ) )
typedef struct tagGEST_ALTERNATE
{
WCHAR wcGestID;
float eScore;
CONFIDENCE_LEVEL confidence; // CFL_STRONG, CFL_INTERMEDIATE, CFL_POOR
POINT hotPoint;
} GEST_ALTERNATE;
#endif // __INCLUDE_TWISTERDEFS_H