Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

Why is Keyboard.GetState(index) obsolete ?

$
0
0

@JohnK wrote:

Hi ! I'm new to Monogame and I'd like to use multiple keyboards for a little splitscreen game. For that, I have to know which keyboard is used for each key that I'm typing. I found a method that could be of use but it's seem deprecated and I'd like to know why :

[Obsolete("Use GetState() instead. In future versions this method can be removed.")]
public static KeyboardState GetState(PlayerIndex playerIndex) { ... }

I also found a similar method in OpenTK : OpenTK.Input.Keyboard.GetState(int). So that's my second question : is it a good idea to use the OpenTK method instead ? I didn't found any other solution except diving into Windows Raw Input API, but that wouldn't be cross-platform at all.

Posts: 9

Participants: 4

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles