User Tag List

Results 1 to 6 of 6

Thread: Easy Gestures [example]

  1. #1
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jul 2006
    Posts
    1,027
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Easy Gestures [example]

    Have you ever wanted to add Mouse Gestures to your application?

    Quote Originally Posted by wikipedia
    In computing, a mouse gesture is a way of combining computer mouse movements and clicks which the software recognizes as a specific command. Mouse gestures can provide quick access to common functions of a program. They can also be useful for people who have difficulties typing on a keyboard. For example, in a web browser, the user could navigate to the previously viewed page by pressing the right mouse button, moving the mouse briefly to the left, then releasing the button.
    Well, now you can, with my easy, simple example

    This has support for up, down, left, and right, though with a little modification more directions are possible. Just record the changes as they happen and then check to see what gestures the user has made whenever you want. The provided example will end the application when it detects the UP DOWN LEFT RIGHT gesture.

    Middle click will activate gesture recording.

    If you use my example, please give me credit also, buy my games when I finally release something worth buying.

    By the way, Sphax's VectorialShape object would work great for drawing the gesture lines
    Attached files Attached files

  2. #2
    No Products Registered

    Join Date
    Aug 2007
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Easy Gestures [example]

    Hey this is really cool!

  3. #3
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleUnicode Add-on

    Join Date
    Jun 2006
    Location
    Australia
    Posts
    988
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Easy Gestures [example]

    Hey this is awesome man! It should be very useful.

  4. #4
    No Products Registered

    Join Date
    May 2008
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Easy Gestures [example]

    Pretty neat, but one thing that gets me is that you can't have a gesture that starts with another gesture's sequence.

    Such as:
    UD = Action 1
    UDU = Action 2

    You'll never be able to do action 2 because as soon as you've done the first Up Down, it cancels your gesture and performs Action 1. Could be extremely problematic if you have an action set to a single direction. Quite silly for it to perform the action before the mouse button is released, actually.

    Of course, all you need to do is add the condition "X Repeat while middle mouse-button is clicked" alongside your "String = UDLR" and move it to before the event which clears that string.

    Still, I'm impressed. Good job implementing this, it could really be useful.

  5. #5
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jul 2006
    Posts
    1,027
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Easy Gestures [example]

    Actually, you can. Just make the events happen after the mouse is released I made the gestures activate instantly for demonstration purposes.

  6. #6
    No Products Registered

    Join Date
    Dec 2007
    Location
    Burbs of Detroit
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Easy Gestures [example]

    Excellent!! /applaudes

Similar Threads

  1. iPhone touch gestures
    By foyzul2002 in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 8th April 2012, 06:59 PM
  2. Multi Gestures
    By virtualrom in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 24th February 2012, 10:37 AM
  3. Gestures
    By AndyH in forum iOS Export Module Version 2.0
    Replies: 5
    Last Post: 17th February 2012, 02:37 PM
  4. Mouse Gestures example...
    By DanielRehn in forum File Archive
    Replies: 4
    Last Post: 18th February 2007, 05:07 AM
  5. This must be easy
    By Shmoo in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 19th January 2007, 05:01 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •