I'm making a program using SDL and everything is going well but everytime that I press any button, my program exits out and returns 3. I tried using sdl_geterror() to find the problem but to no avail. My code for handling input is:
I did that and was able to find and fix the problem. I have another problem though. It seems that my programming isn't able to recognize more than 2 buttons being pressed at the same time but for it to work the way I need it to, it needs to be able to recognize at least 3 buttons pressed at the same time. Any idea on how to fix this?