Lines Matching refs:previous_state
1021 self.previous_state = PenState.PEN_IS_OUT_OF_RANGE
1083 if self.previous_state == PenState.PEN_IS_IN_CONTACT:
1090 if self.previous_state == PenState.PEN_IS_IN_RANGE:
1098 if self.previous_state == PenState.PEN_IS_IN_RANGE_WITH_BUTTON:
1106 if self.previous_state == PenState.PEN_IS_IN_CONTACT:
1119 if self.previous_state == PenState.PEN_IS_IN_CONTACT_WITH_BUTTON:
1133 self.previous_state = pen.current_state
1158 self.previous_state = PenState.PEN_IS_OUT_OF_RANGE
1252 if self.previous_state in (
1268 if self.previous_state in (
1283 if self.previous_state == PenState.PEN_IS_OUT_OF_RANGE:
1290 self.previous_state = pen.current_state