Page 1 of 1

DS-like `gestures` ?

PostPosted: Mon Sep 01, 2008 2:13 pm
by akhad
Just wondering about this, though it's a little beyond my know-how. Has anyone attempted any screen-gesture code ? Like, for example, draw a circle gesture on the screen and a circle appears at the right size and screen co-ordinates, or a gesture that tells the difference between a Tick and a Cross and draws the respective tick or cross graphic ?
Any attempts at this as Global Code routines would be very interesting.

Re: DS-like `gestures` ?

PostPosted: Mon Sep 01, 2008 2:37 pm
by pyrometal
Interesting idea, but this is also very non-trivial to code...

Re: DS-like `gestures` ?

PostPosted: Mon Sep 01, 2008 3:35 pm
by BlarghNRawr
canvas?

Re: DS-like `gestures` ?

PostPosted: Mon Sep 01, 2008 11:18 pm
by edh
I looked into this a little because of my interest in gp2x and windows mobile touchscreens.

One possible tip for solution is having a grid of some sort and using it to detect the gesture. As the mouse moves through the grid, you check to see if it is a gesture. Here is an example of the concept...

Lets say you divide the screen into a grid like this:
[1][2][3]
[4][5][6]
[7][8][9]

You might make a gesture like an "L" which would be drawn by click-dragging from 1 to 4 to 7 to 8 to 9 in that order. So, the gesture for "L" would be "14789".
You may have to make some "fuzziness" like "145" or "256" also match the "L" gesture.

An "O" might be 21478963 (always start at the top, or 12 O'Clock position and draw counter-clockwise). Or, with some fuzziness, you might allow 2563 or something.