So ive been searching the web all over to find the right solution for a program im making, the program uses SDL to display a simulation. what i WANT to do, is make it so when i press a key, such as plus or minus, it changes the simulation or changes some variable, etc.
something that can accomplish this:
Thanks a ton in advance!Code:while 1 { if (keypressed = some key) do this; //simulation }
Jeromy