Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case "m":
- int hor = m.GetInt(7);
- int ver = m.GetInt(8);
- // if hor == 1 (right)
- // if hor == -1 (left)
- // if ver == 1 (down)
- // if ver == -1 (up)
- // if hor == 0 then no movement in left or right
- // if ver == 0 then no movement up or down
- // if both hor and ver == 0 then no movement in either four directions
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement