tomasslavicek

WP7 - Motion API test

Oct 16th, 2013
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.21 KB | None | 0 0
  1. Vector2 acc = new Vector2(-UserInput.AccInput.DeviceAcceleration.X, -UserInput.AccInput.DeviceAcceleration.Y);
  2. if (Vector2.Distance(Vector2.Zero, acc) > 0.75f)
  3. {
  4.     // Provede zklepnutí všech míčků...
  5.    
  6. }
Advertisement
Add Comment
Please, Sign In to add comment