Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions joystick_v3_sock.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@
import socket
import time
import math

s=socket.socket()
host='192.168.0.21'
port=8087
s.bind((host,port))
s.listen(5)
c,addr = s.accept()

pygame.init()
done = False
clock = pygame.time.Clock()
Expand All @@ -21,15 +19,14 @@
button2=0
button3=0
button4=0

# -------- Main Program Loop -----------
time.sleep(10)
print("Ready to start")
while not done:
startingtime=time.time()
for event in pygame.event.get():
if event.type == pygame.QUIT:
done = True
done = False



Expand Down