added SDL event filter to track mouse position from mouse motion events