Skip to content
This repository has been archived by the owner on Jun 25, 2019. It is now read-only.

wedgex/XNA-Keyboard-Text-Reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Before using
------------
The KeyboardStringReader needs a reference to System.Windows.Forms in order to get the capslock and numlock states, so a reference will need to be added to the XNA project.

How to use
----------

KeyboardStringReader textReader = new KeyboardStringReader();
StringBuilder inputText = new StringBuilder();

protected override void Update(GameTime gameTime)
{
	KeyboardState keyboard = Keyboard.GetState();
	this.textReader.Process(keyboard, gameTime, this.inputText);
}

About

An XNA util for reading text from the KeyboardState.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages