Update gesture recognition.