I was trying to make a event loop into a function that will simple toggle globe variables. The reason I am trying to do this is that I don't know what input the final product will use, so I am trying to tie it into SDL as little as possible.
Here is the function so far; needless to say it is not working right.
Hold on; it seems the problem is in the keyup part of the function; it appears to be setting everything back to 0 before the function ends. Any ideas on what is wrong?