Writing a keyboard input class?

Hi there.

I’m just starting a keyboard class for user input. It only needs to be really simple, A-Z and 1-0, So I thought I’d just pass the KeyboardState and an Old KeyboardState to a function where I’d check KeyIsUp etc.

But That approach has the problem of how to handle returning the keys, the first checked is the first returned. I don’t really want to use a Windows.Forms object, it would look a bit out of place.

But I notice the Input object also has “KeyboardInput”. Could this be used in any way?

I’ve searched but I can’t find anything on this object.

Many Thanks.

Use the GameWindow.TextInput event.