Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static void Update()
- {
- var gamePadData = GamePad.GetData (0);
- if( FMath.Abs(gamePadData.AnalogRightX) > 0.1 || FMath.Abs(gamePadData.AnalogRightY) > 0.1){ //Deadzone
- imagebox1.Y += gamePadData.AnalogLeftY * 10;
- imagebox1.X += gamePadData.AnalogLeftX * 10;
- }
- foreach(var touchInfo in Touch.GetData (0))
- {
- if (touchInfo.Status == TouchStatus.Down || touchInfo.Status == TouchStatus.Move)
- {
- imagebox1.Y = (touchInfo.Y + 0.5f) * 544;
- imagebox1.X = (touchInfo.X + 0.5f) * 960;
- // Cursor Debugging! :D
- Console.Write("X");
- Console.Write((touchInfo.X + 0.5f) * 544);
- Console.Write("Y");
- Console.Write((touchInfo.Y + 0.5f) * 544);
- // END OF CURSOR DEBUGGING
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement