This project is read-only.
1

Closed

Keyboard is completely locked out while running the game

description

Adding the following code to my XNA game causes me to lose my keyboard while the game is running.

To be clear, I'm not talking about in the game. In all programs and windows except the game, I cannot type or use any keyboard shortcuts.

Alt+tab and ctrl+alt+del both work, but ctrl+shift+esc does not.
Texture2D GreyImageMap = mGamePlayContent.Load<Texture2D>( @"HUD\GreySkin\ImageMap" );
string GreyMap = File.OpenText( @"Content\HUD\GreySkin\Map.txt" ).ReadToEnd();
SpriteFont GreySpriteFont = mGamePlayContent.Load<SpriteFont>( @"HUD\GreySkin\Texture" );

var skin = new Skin( GreyImageMap, GreyMap );
var text = new Text( GreySpriteFont, Color.Black );

_gui = new Gui( game, skin, text );
Closed Jun 13, 2013 at 11:09 PM by ClassicThunder
Fixed in source code.

comments

ddbrown30 wrote May 29, 2013 at 1:58 AM

This is apparently only with the DLL downloaded from the Downloads tab and from the example project. I just grabbed the source and compiled it and it seems to work fine.

ClassicThunder wrote Jun 13, 2013 at 11:09 PM

Yeah rebuilding everything for the proper release is a bit of a pita so the source is usually more current.