|
|
@@ -128,9 +128,9 @@ def pinch(event):
|
|
|
listener = MultiTouchListener(verbose=1, tuio_verbose=0)
|
|
|
listener.bind('rotate', rotate)
|
|
|
listener.bind('pinch', pinch)
|
|
|
-#listener.bind('tap', lambda e: taps.append([coord(*e.xy), FINGER_RADIUS]))
|
|
|
-#listener.bind('single_tap', lambda e: dtaps.append(list(coord(*e.xy)) + [1]))
|
|
|
-#listener.bind('double_tap', lambda e: dtaps.append(list(coord(*e.xy)) + [0]))
|
|
|
+listener.bind('tap', lambda e: taps.append([coord(*e.xy), FINGER_RADIUS]))
|
|
|
+listener.bind('single_tap', lambda e: dtaps.append(list(coord(*e.xy)) + [1]))
|
|
|
+listener.bind('double_tap', lambda e: dtaps.append(list(coord(*e.xy)) + [0]))
|
|
|
listener.start(threaded=True)
|
|
|
|
|
|
# Start GUI event loop
|