This pull request refactors the gesture class to use a deque data structure for the buffer and identified movements. This change improves performance and memory usage by limiting the size of the buffer to 120 gestures and ensuring that only the most recent identified movements are stored. Additionally, the check point reset logic has been simplified and the identified movement gestures are now stored in a separate deque. These changes enhance the overall efficiency and maintainability of the code.
This pull request refactors the gesture class to use a deque data structure for the buffer and identified movements. This change improves performance and memory usage by limiting the size of the buffer to 120 gestures and ensuring that only the most recent identified movements are stored. Additionally, the check point reset logic has been simplified and the identified movement gestures are now stored in a separate deque. These changes enhance the overall efficiency and maintainability of the code.