thiiiiings

This commit is contained in:
Jonas Zeunert
2020-02-13 19:05:55 +01:00
parent 82f1ad6ed8
commit 7414734dad
719 changed files with 41551 additions and 227 deletions

17
InputHandler.py Normal file
View File

@@ -0,0 +1,17 @@
import asyncio
from networking.Networking import Networking
class InputHandler:
def __init__(self, targets):
self.isRunning = True
self.targets = targets
async def handleInputs(self):
self.isRunning = True
while self.isRunning:
event = await Networking().getInputEvent()
self.targets[event].hit() #Todo
def stop(self):
self.isRunning = False