18 years, 6 months ago
Highlights
Got it going, thank InsaneBoarder, I had this in the main loopdoReciever(){ while(SDL_PollEvent(&event;)) { switch(event.type){ case SDL_QUIT: exit(0); break; } }}then the funct…
18 years, 6 months ago
18 years, 7 months ago
Hi, I'm having problems creating the above functions to return true if a particular key has been pressed? These functions need to behave in the same manor as the functions in a…
18 years, 7 months ago
18 years, 7 months ago
Yeah I've got a listen function which is called in the loop, in here you could put keyState = SDL_GetKeyState(NULL);if(keyState[SDK_ESCAPE]==1))exit(0)And this would work. So in…
18 years, 7 months ago
Latest Activity
See all in DiscussionsGot it going, thank InsaneBoarder, I had this in the main loopdoReciever(){ while(SDL_PollEvent(&event;)) { switch(event.type){ case SDL_QUIT: exit(0); break; } …
18 years, 6 months ago
Yeah I've got a listen function which is called in the loop, in here you could put keyState = SDL_GetKeyState(NULL);if(keyState[SDK_ESCAPE]==1))exit(0)And …
18 years, 7 months ago
Thanks for that, it still returns true, this is the problem, it doesn't matter what method I do it always …
18 years, 7 months ago