-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated client page to take controller/mobile input
added a host.py file to automate hosting for mobile devices on the network slightly changed docs linking in apworld
- Loading branch information
Showing
4 changed files
with
1,108 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import http.server | ||
import socketserver | ||
|
||
PORT = 80 | ||
|
||
|
||
class Handler(http.server.SimpleHTTPRequestHandler): | ||
def do_GET(self): | ||
print(self.path) | ||
if self.path in ["/", "/pico-window.js", "pico8-gpio-listener.js"]: | ||
super().do_GET() | ||
|
||
|
||
with socketserver.TCPServer(("", PORT), Handler) as httpd: | ||
print("serving at port", PORT) | ||
httpd.serve_forever() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.