Mouse and Touch support

Topics: Windows Metro
Oct 2, 2012 at 1:53 PM

Hello,

I'm playing around with monogame and metro trying to port some wp7 games.

I want to ask if there is a Global Input method that I miss? I've tested on simulator and it seams I have to handle both mouse and touch in one game? 

Coordinator
Oct 2, 2012 at 2:36 PM

In the Microsoft.Xna.Framework.Input namespace you will find the Mouse, Keyboard and Gamepad classes. Each has a static method GetState. In Microsoft.Xna.Framework.Input.Touch you will find the TouchPanel class with a GetState static method as well.

Coordinator
Oct 2, 2012 at 2:41 PM

Windows Phone only supported touch input. Windows 8 supports touch, mouse, keyboard and gamepad. Windows Phone mapped the first touch input to mouse input for ease of porting Windows games to the phone. We do not support that in Windows 8 because it has proper mouse support, therefore no need for simulating mouse input from touch.