mono/MonoGame — pull request #758 by Aranda (2012-09-10 22:57:06+00:00)
Title: Android fixes - touch and orientation handling (BASED ON TOM's CHANGES)

I'm putting this up early as I'm off to work now, but don't bother looking at the diff until Tom's Touch Refactor is merged.

- Fixes an issue with Android touch coordinates so the scaling is now handled in the new TouchPanel.
- Removed the concept of disabling touch input during a device orientation change. This was flakey as it was quite possible to trigger an orientation change but not get the SurfaceChanged event after.
- Improved ResetClientBounds so it keeps the PresentationParamters buffer size in sync
- Called ResetClientBounds at startup to ensure the Viewport is correctly offset. When the user specifies non-device aspect ratios, ResetClientCounds scales and offsets to handle this. It uses the Viewport offset values, which is not strictly speaking correct (should really be a render target instead), but at least now the Viewport offset value is correct at startup. Previously it would only be correct after an orientation change!.