Is there a way to use multiple keyboards for multiple players

Posted By: jumpman

Is there a way to use multiple keyboards for multiple players - 06/26/17 16:28

Just curious, how would you go about using multiple keyboards, each keyboard being used by a player? Is that possible in gamestudio, or in pc gaming in general?
Posted By: Kartoffel

Re: Is there a way to use multiple keyboards for multiple players - 06/26/17 19:37

Not sure. I don't think so unless the windows api offers functionality to differentiate between multiple keyboards and read their inputs.
Posted By: jumpman

Re: Is there a way to use multiple keyboards for multiple players - 06/26/17 20:37

thank you friend!
Posted By: Ch40zzC0d3r

Re: Is there a way to use multiple keyboards for multiple players - 06/26/17 20:52

You wanna use RawInput.
Heres a C# example:
http://www.codeproject.com/Articles/17123/Using-Raw-Input-from-C-to-handle-multiple-keyboard

And Here is a C++ example:
https://msdn.microsoft.com/de-de/library/windows/desktop/ms645546(v=vs.85).aspx
© 2024 lite-C Forums