(self, event)
| 1031 | self.isLongTouchingView = False |
| 1032 | |
| 1033 | def onButton1Pressed(self, event): |
| 1034 | if DEBUG: |
| 1035 | print("onButton1Pressed((", event.x, ", ", event.y, "))", file=sys.stderr) |
| 1036 | (scaledX, scaledY) = (event.x / self.scale, event.y / self.scale) |
| 1037 | if DEBUG: |
| 1038 | print(" onButton1Pressed: scaled: (", scaledX, ", ", scaledY, ")", file=sys.stderr) |
| 1039 | print(" onButton1Pressed: is grabbing:", self.isGrabbingTouch, file=sys.stderr) |
| 1040 | |
| 1041 | if self.isGrabbingTouch: |
| 1042 | self.onTouchListener((scaledX, scaledY)) |
| 1043 | self.isGrabbingTouch = False |
| 1044 | elif self.isDragDialogShowed: |
| 1045 | self.toast("No touch events allowed while setting drag parameters", background=Color.GOLD) |
| 1046 | return |
| 1047 | elif self.isTouchingPoint: |
| 1048 | self.touchPoint(scaledX, scaledY) |
| 1049 | elif self.isLongTouchingPoint: |
| 1050 | self.longTouchPoint(scaledX, scaledY) |
| 1051 | elif self.isLongTouchingView: |
| 1052 | self.getViewContainingPointAndLongTouch(scaledX, scaledY) |
| 1053 | elif self.isGeneratingTestCondition: |
| 1054 | self.getViewContainingPointAndGenerateTestCondition(scaledX, scaledY) |
| 1055 | else: |
| 1056 | if self.vc: |
| 1057 | self.getViewContainingPointAndTouch(scaledX, scaledY) |
| 1058 | else: |
| 1059 | # If we don't have Views, there no other option than touching points |
| 1060 | self.touchPoint(scaledX, scaledY) |
| 1061 | |
| 1062 | def onCtrlButton1Pressed(self, event): |
| 1063 | if DEBUG: |
nothing calls this directly
no test coverage detected