From 2cdfe900d79bc2364ef609ddf4c5c0fe732e78df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 18 Jul 2017 13:04:24 +0200 Subject: Add initial version with support for gamepad input --- turtetris-master/__init__.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 turtetris-master/__init__.py (limited to 'turtetris-master/__init__.py') 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() -- cgit v1.2.3