Topic awaiting preservation: Mouse Guestures |
|
---|---|
Author | Thread |
Maniac (V) Inmate From: Brisbane, Australia |
posted 05-28-2003 21:28
This isn't DHTML or JavaScript related but I felt the question best be asked to the poeple that hang out here. |
Paranoid (IV) Inmate From: Milwaukee |
posted 05-29-2003 00:30
Not knowing Lingo, this is a pure guess, but I'm thinking it might be less processor-intensive if you just recorded the coordinates of the MouseDown event and then on MouseUp, you correlate the two coordinate pairs and take action. This would prevent you from using Opera-style patterns (like "right, then down"), but it's what I would do. You get eight mouse gestures out of it, at least. |
Maniac (V) Inmate From: Brisbane, Australia |
posted 05-29-2003 02:53
That's an idea. Dead simple too. Yeah, thanks PT, I'll have a play with that. |
Maniac (V) Inmate From: Brisbane, Australia |
posted 05-29-2003 17:50
Actually, I've decided to scrap this project. Well, at least, put it on hold for a while. It's just too much work for what I'd get out of it. |
Nervous Wreck (II) Inmate From: Utreg, NL |
posted 05-29-2003 23:10
Instead of plotting coordinates and trying to get a matching shape out of that (hard), you could also just devide mousemovent in 4 general directions. up, right, down and left. When the user moves the mouse, you construct a string, adding the last direction the mouse went in as a character, repesenting the direction. (u, r, d, l for instance). Then you can link actions to those strings. a question mark can be made of a right, down, left and down: RDLD. etc. |
Paranoid (IV) Inmate From: France |
posted 05-29-2003 23:41
Clay: When I read your post I said to myself "hey' it sounds like Peter Nerderlof's implementation" I find your method ( building a string based on the direction ) really interresting. It's simple and extremely efficient. BTW, Congrats for your site. |
Paranoid (IV) Mad Scientist From: Somewhere over the rainbow |
posted 05-29-2003 23:49
The poster has demanded we remove all his contributions, less he takes legal action. |
Maniac (V) Inmate From: Brisbane, Australia |
posted 05-30-2003 00:11
Wow, some nice ideas there Clay. I'll have to give that a try when I have time to scratch myself again. |
Nervous Wreck (II) Inmate From: Utreg, NL |
posted 05-30-2003 10:29
quote:
|