Original Post
Hello. I'm using SDL to handle keyboard events and I came to a conclusion that an array of 256 elements isn't enough to hold all keyboard keys states. I don't want to use SDL_GetKeyState() as it looks faster to handle key events manually. And coping all key states each time looks stupid for me. I wrote a code to print the value of key pressed (event.key.keysym.sym) and it returns various values. I can't find the system, so I gonna have to use SDL definitions or just get the number of symbol/key (whatever SDL defines) to be able to get the key state from the array. The problem is that I don't know how big array should I make. Or should I save key states some other way (have no idea how to do it without an array)?