SDL2 detects controls and stabilises FPS