#include <string.h>
Go to the source code of this file.
Defines | |
#define | MAGIC_MT_TRACKPAD_INTERPRETER 1 |
MAGIC_MT_TRACKPAD_INTERPRETER : gesture interpreter about Multi-touch TrackPAD. | |
#define | STARCRAFT2_INTERPRETER 2 |
STARCRAFT2_INTERPRETER : gesture interpreter about starcraft2. | |
#define | SG_ABSOLUTE_MODE 1 |
#define | SG_RELATIVE_MODE 2 |
#define | DEBUG (void) |
Functions | |
void | InitializeSMTG (void) |
void | initializeSGParameter (void) |
void | initializeSGTouchSet (void) |
void | initializeSGTouchStroke (void) |
void | initializeSGEventLish (void) |
void | initializeSGNFingerTap (void) |
void | sgRecognizeGesture (int nBlobsSize, int *pid, float *pfx, float *pfy, float *pfdx, float *pfdy) |
void | sgInterpreteGesture (int application) |
void | interpreter_magic_mt_trackpad () |
void | interpreter_starcraft2 () |
void | sg_updatetouchset () |
void | sg_blobstotouchset (int nBlobsSize, int *pid, float *pfx, float *pfy, float *pfdx, float *pfdy) |
void | sg_statemachine () |
bool | check_Nfinger_tap () |
bool | check_Nfinger_move () |
bool | check_Nfinger_swipe () |
bool | check_pinch_and_rotation () |
void | find_firstandlast_index (int &f_index, int &l_index, int max_touch) |
void | euclidian_distance (float &dx, float &dy, float &pd, int f_index, int l_index) |
bool | judge_Nfinger_tap (float d, int f_index, int l_index, int ntouch) |
bool | judge_Nfinger_swipe (float dx, float dy, float d, int f_index, int l_index, int ntouch) |
bool | judge_Nfinger_move (float cos_theta, int nfinger, float cx, float cy, float dx, float dy) |
int | sg_scale (void) |
int | sg_rotate (void) |
void | sg_mtpETAP (int index) |
void | sg_mtpEDTAP (int index) |
void | sg_mtpEPINCH (int index) |
void | sg_mtpEROTATE (int index) |
void | sg_mtpNFINGERMOVE (int index) |
void | sg_mtpNFINGERSWIPE (int index) |
void | sg_mtpNFINGERHOLD (int index) |
void | sg_mtpETAP_1touch (int index) |
void | sg_mtpETAP_2touch (int index) |
void | sg_mtpETAP_3touch (int index) |
void | sg_mtpETAP_4touch (int index) |
void | sg_mtpEDTAP_1touch (int index) |
void | sg_mtpNFINGERSWIPE_2touch (int index) |
void | sg_mtpNFINGERSWIPE_3touch (int index) |
void | sg_mtpNFINGERSWIPE_4touch (int index) |
void | sg_mtp_PRETOUCH_NFINGERSWIPE_2touch () |
void | sg_mtp_PRETOUCH_NFINGERSWIPE_3touch () |
void | sg_mtp_PRETOUCH_NFINGERSWIPE_4touch () |
void | sg_mtp1FingerTap_move () |
void | sg_mtp1FingerDTap_move () |
void | sg_mtp_interpreter_statemachine () |
void | sg_star2ETAP (int index) |
void | sg_star2EDTAP (int index) |
void | sg_star2EPINCH (int index) |
void | sg_star2EROTATE (int index) |
void | sg_star2NFINGERMOVE (int index) |
void | sg_star2NFINGERSWIPE (int index) |
void | sg_star2NFINGERHOLD (int index) |
void | save_nfingertap (bool _flag, float _cx, float _cy, int _ntouch) |
void | middle_button_up () |
void | wm_Lbutton_down (int index) |
void | wm_Lbutton_up (int index) |
void | wm_Rbutton_down (int index) |
void | wm_Rbutton_up (int index) |
void | wm_mouse_move (int index) |
void | wm_mouse_wheel (int index) |
void | wm_mtp_rotation (int index) |
void | scroll_up () |
void | scroll_down () |
void | scroll_left () |
void | scroll_right () |
void | SetCoordinateMode (int mode) |
#define DEBUG (void) |
#define MAGIC_MT_TRACKPAD_INTERPRETER 1 |
MAGIC_MT_TRACKPAD_INTERPRETER : gesture interpreter about Multi-touch TrackPAD.
#define SG_ABSOLUTE_MODE 1 |
#define SG_RELATIVE_MODE 2 |
#define STARCRAFT2_INTERPRETER 2 |
STARCRAFT2_INTERPRETER : gesture interpreter about starcraft2.
bool check_Nfinger_move | ( | ) |
bool check_Nfinger_swipe | ( | ) |
bool check_Nfinger_tap | ( | ) |
bool check_pinch_and_rotation | ( | ) |
void euclidian_distance | ( | float & | dx, |
float & | dy, | ||
float & | pd, | ||
int | f_index, | ||
int | l_index | ||
) |
void find_firstandlast_index | ( | int & | f_index, |
int & | l_index, | ||
int | max_touch | ||
) |
void initializeSGEventLish | ( | void | ) |
void initializeSGNFingerTap | ( | void | ) |
void initializeSGParameter | ( | void | ) |
void initializeSGTouchSet | ( | void | ) |
void initializeSGTouchStroke | ( | void | ) |
void InitializeSMTG | ( | void | ) |
void interpreter_magic_mt_trackpad | ( | ) |
void interpreter_starcraft2 | ( | ) |
bool judge_Nfinger_move | ( | float | cos_theta, |
int | nfinger, | ||
float | cx, | ||
float | cy, | ||
float | dx, | ||
float | dy | ||
) |
bool judge_Nfinger_swipe | ( | float | dx, |
float | dy, | ||
float | d, | ||
int | f_index, | ||
int | l_index, | ||
int | ntouch | ||
) |
bool judge_Nfinger_tap | ( | float | d, |
int | f_index, | ||
int | l_index, | ||
int | ntouch | ||
) |
void middle_button_up | ( | ) |
void save_nfingertap | ( | bool | _flag, |
float | _cx, | ||
float | _cy, | ||
int | _ntouch | ||
) |
void scroll_down | ( | ) |
void scroll_left | ( | ) |
void scroll_right | ( | ) |
void scroll_up | ( | ) |
void SetCoordinateMode | ( | int | mode ) |
void sg_blobstotouchset | ( | int | nBlobsSize, |
int * | pid, | ||
float * | pfx, | ||
float * | pfy, | ||
float * | pfdx, | ||
float * | pfdy | ||
) |
void sg_mtp1FingerDTap_move | ( | ) |
void sg_mtp1FingerTap_move | ( | ) |
void sg_mtp_interpreter_statemachine | ( | ) |
void sg_mtp_PRETOUCH_NFINGERSWIPE_2touch | ( | ) |
void sg_mtp_PRETOUCH_NFINGERSWIPE_3touch | ( | ) |
void sg_mtp_PRETOUCH_NFINGERSWIPE_4touch | ( | ) |
void sg_mtpEDTAP | ( | int | index ) |
void sg_mtpEDTAP_1touch | ( | int | index ) |
void sg_mtpEPINCH | ( | int | index ) |
void sg_mtpEROTATE | ( | int | index ) |
void sg_mtpETAP | ( | int | index ) |
void sg_mtpETAP_1touch | ( | int | index ) |
void sg_mtpETAP_2touch | ( | int | index ) |
void sg_mtpETAP_3touch | ( | int | index ) |
void sg_mtpETAP_4touch | ( | int | index ) |
void sg_mtpNFINGERHOLD | ( | int | index ) |
void sg_mtpNFINGERMOVE | ( | int | index ) |
void sg_mtpNFINGERSWIPE | ( | int | index ) |
void sg_mtpNFINGERSWIPE_2touch | ( | int | index ) |
void sg_mtpNFINGERSWIPE_3touch | ( | int | index ) |
void sg_mtpNFINGERSWIPE_4touch | ( | int | index ) |
int sg_rotate | ( | void | ) |
int sg_scale | ( | void | ) |
void sg_star2EDTAP | ( | int | index ) |
void sg_star2EPINCH | ( | int | index ) |
void sg_star2EROTATE | ( | int | index ) |
void sg_star2ETAP | ( | int | index ) |
void sg_star2NFINGERHOLD | ( | int | index ) |
void sg_star2NFINGERMOVE | ( | int | index ) |
void sg_star2NFINGERSWIPE | ( | int | index ) |
void sg_statemachine | ( | ) |
void sg_updatetouchset | ( | ) |
void sgInterpreteGesture | ( | int | application ) |
void sgRecognizeGesture | ( | int | nBlobsSize, |
int * | pid, | ||
float * | pfx, | ||
float * | pfy, | ||
float * | pfdx, | ||
float * | pfdy | ||
) |
void wm_Lbutton_down | ( | int | index ) |
void wm_Lbutton_up | ( | int | index ) |
void wm_mouse_move | ( | int | index ) |
void wm_mouse_wheel | ( | int | index ) |
void wm_mtp_rotation | ( | int | index ) |
void wm_Rbutton_down | ( | int | index ) |
void wm_Rbutton_up | ( | int | index ) |