diff options
author | Karel Kočí <karel.koci@nic.cz> | 2017-07-18 13:04:24 +0200 |
---|---|---|
committer | Karel Kočí <karel.koci@nic.cz> | 2017-07-18 13:15:54 +0200 |
commit | 2cdfe900d79bc2364ef609ddf4c5c0fe732e78df (patch) | |
tree | 1149897c514f538771b432013f9a4b5cd3b2cc7d /turtetris-master/__init__.py | |
download | turris-tetris-2cdfe900d79bc2364ef609ddf4c5c0fe732e78df.tar.gz turris-tetris-2cdfe900d79bc2364ef609ddf4c5c0fe732e78df.tar.bz2 turris-tetris-2cdfe900d79bc2364ef609ddf4c5c0fe732e78df.zip |
Add initial version with support for gamepad input
Diffstat (limited to 'turtetris-master/__init__.py')
-rw-r--r-- | turtetris-master/__init__.py | 12 |
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() |