All Questions
4 questions
0
votes
1
answer
828
views
SDL - Limiting loop with timer? Not polling
I am using SDL/Glew to create an engine for a game I want to make. I am trying to set a constant framerate of like around 60 (once every 17ish ms). I don't know the best way to do this so I do ...
0
votes
2
answers
1k
views
SDL2 MOUSEBUTTONUP triggers more than once
I've been trying to figure this out all day. I'm trying to make a simple check box. But my MOUSEBUTTONUP event keeps firing until I trigger another event like moving the mouse or clicking again.
<...
1
vote
1
answer
1k
views
SDL2 SDL_PollEvent endless polling on key hold
What is wrong with SDL2 SDL_PollEvent() function? When I press-and-hold a key it enters "while (SDL_PollEvent())" block each frame. If in previous frame event queue was emptied and in new frame I ...
1
vote
1
answer
1k
views
SDL2 event mouse wheel trouble
it's been all day I have a problem getting mousewheel events properly in one of my program. I can make a program from scratch and it work properly, however as soon as i do the same things inside this ...