aboutsummaryrefslogtreecommitdiff
path: root/turtetris_master/__init__.py
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2017-07-18 13:42:52 +0200
committerKarel Kočí <karel.koci@nic.cz>2017-07-18 13:42:52 +0200
commit5256ae2e59f513afe66203ceecd8759d1bd60a07 (patch)
tree09e26575b3d0ec588c4a630bb5b6577e2eb2c61c /turtetris_master/__init__.py
parentd6a66b345d043d3223a05d6993584e876d0d7986 (diff)
downloadturris-tetris-5256ae2e59f513afe66203ceecd8759d1bd60a07.tar.gz
turris-tetris-5256ae2e59f513afe66203ceecd8759d1bd60a07.tar.bz2
turris-tetris-5256ae2e59f513afe66203ceecd8759d1bd60a07.zip
Another fixes in setup
Diffstat (limited to 'turtetris_master/__init__.py')
-rw-r--r--turtetris_master/__init__.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/turtetris_master/__init__.py b/turtetris_master/__init__.py
new file mode 100644
index 0000000..9cf22b1
--- /dev/null
+++ b/turtetris_master/__init__.py
@@ -0,0 +1,12 @@
+from .usb_input import Gamepad
+
+
+def main():
+ "Main function"
+ inpt = Gamepad()
+ while True:
+ print(inpt.check())
+
+
+if __name__ == '__main__':
+ main()