Multiple Keyboards sample code

BlitzMax Forums/BlitzMax Programming/Multiple Keyboards sample code

Charrua(Posted 2010) [#1]
One Computer, One Screen (probably big), many users: many Keyboards..., many mice too, but not implemented yet!
Why not to have a cursor for each mouse instaled, the same for keyboards

i hope that this has an application in game programming

what the code does:
First: signals the system to send us KeyBoard events (RegisterRID_KEYBOARD(hWnd:Int))
Second: Obtain the list of Keyboards on the system ()
wait for keyboard events and show what its received

nothing spectacular, but, you may have some keyboards and you can identify which key cames from wich keyboard, so, you can have one keyboard per player.

probably of interest for someone



enjoy

best regards

Juan


Czar Flavius(Posted 2010) [#2]
I'm sure someone could find this helpful! You should add it to the code archives :)