![]() Topic awaiting preservation: Mouse Guestures (Page 1 of 1) |
|
---|---|
Maniac (V) Inmate From: Brisbane, Australia |
![]() 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 |
![]() 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 |
![]() That's an idea. Dead simple too. Yeah, thanks PT, I'll have a play with that. |
Maniac (V) Inmate From: Brisbane, Australia |
![]() 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 |
![]() 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 |
![]() Clay: When I read your post I said to myself "hey' it sounds like Peter Nerderlof's implementation" |
Paranoid (IV) Mad Scientist From: Somewhere over the rainbow |
![]() The poster has demanded we remove all his contributions, less he takes legal action. |
Maniac (V) Inmate From: Brisbane, Australia |
![]() 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 |
![]() quote:
|