There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
Problem with input system in Windows 8 Metro system
When I try to get the KeyboardState or MouseState in Update loop of my metro game (and more particularily in the first update call) it's generate an error.
I investigate a little bit in ANX code and I discover that the error come from the fact that the first update is done before run the CoreApplication whether the Keyboard or Mouse need the CoreApplication to run before they can get their state (CoreWindow in
fact but it's linked).
I suggest you to run the gameHost (and so on, the CoreApplication) before calling the first update.
The workaround I use for now is to don't check Keyboard/Mouse on the first update and it works fine.