Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FUNCky - <b>name:</b> <b>m_movement() - find out the direction mouse is moving</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     m_movement() - find out the direction mouse is moving
  Usage:    <integer> = m_movement()
  Params:   none
  Returns:  integer specifying direction the mouse is moving:

                 0 = no movement
                 1 = movement upwards
                 2 = movement to the right
                 3 = movement downwards
                 4 = movement to the right

 ---------------------------------- Example ---------------------------------

                 move_var = m_movement()

                 if move_var = 0
                      print(10,10,"Hey, we're not moving....")
                 elseif move_var = 1
                      print(10,10,"we're moving up....      ")
                 elseif move_var = 2
                      print(10,10,"we're moving right....   ")
                 elseif move_var = 3
                      print(10,10,"we're moving down....    ")
                 elseif move_var = 4
                      print(10,10,"we're moving left....    ")
                 endif


See Also: m_hmickeys() m_vmickeys() m_mickeys()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson