예제 #1
0
def on_air_gesture_event(identifier, air_gesture):
    print(" Air gesture: " + AirGestures(air_gesture).name)
    if air_gesture == AirGestures.UP_ONE_FINGER.value:
        tap_instance.set_input_mode(TapInputMode("raw"), identifier)
    if air_gesture == AirGestures.DOWN_ONE_FINGER.value:
        tap_instance.set_input_mode(TapInputMode("text"), identifier)
    if air_gesture == AirGestures.LEFT_ONE_FINGER.value:
        tap_instance.set_input_mode(TapInputMode("controller"), identifier)
예제 #2
0
def OnGesture(identifier, gesture):
    print(str(identifier) + " gesture " + str(AirGestures(gesture)))