Exemple #1
0
def reverse_left():
    PressKey(S)
    PressKey(A)
    ReleaseKey(W)
    ReleaseKey(D)
Exemple #2
0
def reverse_right():
    PressKey(S)
    PressKey(D)
    ReleaseKey(A)
    ReleaseKey(W)
Exemple #3
0
def straight_right():
    PressKey(W)
    PressKey(D)
    ReleaseKey(A)
    ReleaseKey(S)
    time.sleep(1)
Exemple #4
0
def reverse():
    PressKey(S)
    ReleaseKey(W)
    ReleaseKey(A)
    ReleaseKey(D)
Exemple #5
0
def right():
    PressKey(D)
    PressKey(W)
    ReleaseKey(A)
    ReleaseKey(S)
    time.sleep(1)
Exemple #6
0
def left():
    PressKey(A)
    PressKey(W)
    ReleaseKey(D)
    ReleaseKey(S)
    time.sleep(1)
Exemple #7
0
def straight():
    PressKey(W)
    ReleaseKey(A)
    ReleaseKey(D)
    ReleaseKey(S)