you have right.. the MSDN can be very confused sometimes.
but i found these topic in diferent forum, with your help: http://www.gamedev.net/topic/43463-how-to-use-getkeyboardstate-/
i can use a for loop for test all keys and put them in a variable ;)
thanks for all
- If to_string returns a string... why are you calling c_str here? Why not just assign the string to i directly?
- keysstate[x] is likely going to be 0 (a null character) or 0x80 (a weird non-ascii character), so converting it to a string and printing it won't really be useful.
- How is putting the keysstate array into a string helpful, anyway? A string is just a different kind of array... so why not just use the keysstate array directly? Why convert to string?
thanks for correct me that.. thanks.
"And this code isn't using GetKeyboardState at all. Was that intentional?"
sorry about that.. i'm confused of what means 'intentional'. but i use these new function, because i wasn't get sucess with GetKeyboardState () and more: now i can test the no key and any key ;)