Fix virtual analog stick getting stuck. Fixes #2653.