INNER CODE UNIT · Python
_release
codematrixer/hmdriver2 · hmdriver2/_gesture.py:43
def _release(self):
self.steps = []
def start(self, x: Union[int, float], y: Union[int, float], interval: float = 0.5) -> '_Gesture':
"""
Start gesture operation.
Args:
x: oordinate as a percentage or absolute value.
y: coordinate as a percentage or absolute value.
interval (float, optional): Duration to hold at start position in seconds. Default is 0.5.
Returns:
Gesture: Self instance to allow method chaining.
"""
self._ensure_can_start()
self._add_step(x, y, "start", interval)
return self