background preloader

DDJ

Facebook Twitter

Lighting

Sprite Database. Mouse Gesture Recognition Engine. Title: Mouse Gesture Recognition EngineDescription: Converts shapes drawn by the user's mouse to simple strings of directionsGM Version: GM 8.1Registered: Yes, because it uses ds_listsFile Type: .gm81File Size: 10.01KBFile Link: Extensions: NoneRequired DLLs: NoneSummaryThis is a simple engine that converts a shape drawn by the mouse (well, a list of 2D vectors to be precise) to a string of cardinal directions (Left, Up, Right, Down).

Mouse Gesture Recognition Engine

It can be used to change handwriting into text, for quick navigation in a complex program, drawing symbols to perform actions in an RPG, and really anything that can use mouse gestures. I've commented the larger and less obvious blocks of code, and indicated which parts are not part of the core engine, that is, just for testing purposes. You will probably be using something similar to the large switch statement that picks the right action for each correctly drawn gesture, however.