mono/MonoGame — pull request #620 by Aranda (2012-07-24 16:57:59+00:00)
Title: Incrementing touch Id for Android.

- Added Android/Input/Touch/AndroidTouchEventManager.cs and refactored MotionEvent handling to this class
- Removed GestureListener.cs and references
- Fixed bug in TouchPanel.cs where all subsequent events with the same Id (instead of same Id and state) were removed.
- Avoided crash when tapping during initial app load. Tried unsuccessfully to delay enabling touch (discovered SetOnTouchListener(this) was unnecessary) but ended up simply checking for null graphics device when transforming touch positions.
- Fixed bug in GraphicsDeviceManager.ResetClientBounds() and TouchPanel.cs where using an Activity attribute with "ScreenOrientation = ScreenOrientation.Unspecified" would cause TouchPanel.DisplayWidth/Height not to match current orientation.
- Massaged the way AndroidTouchEventManager is enabled/disabled to avoid (or at least minimise) Android losing touch events during screen rotation. The side effect of this was that TouchPanel.GetState() would include phantom touches that were never Released.