Gesture Recognition!!!!!!
Posted: Mon Apr 17, 2006 6:44 am
I have created a gesture recognition program that only requires ONE object! The pacman in the middleis the object that does the recognition. The objects in the lower left hand corner are just debugging. The gesture gets put into a string called "gesture". In the string, u means up, d means down, l means left and r means right(the initials of the directions). Usually you have to do somthing, for example, like this
to see if the gesture is Up, down, left, right, then down, and thaen close the game if it if true.
Get it here: http://www.worth.id.au/~joshua/gesturerec.zip
ENJOY
- Code: Select all
if (strcmp(gesture, "udlrd") == 0){
ExitGame();
}
to see if the gesture is Up, down, left, right, then down, and thaen close the game if it if true.
Get it here: http://www.worth.id.au/~joshua/gesturerec.zip
ENJOY