change singleton to global

This commit is contained in:
Jonas Zeunert
2021-03-07 16:24:04 +01:00
parent 6450ee22dc
commit 62bdd68c5a
12 changed files with 25 additions and 28 deletions

View File

@@ -1,5 +1,4 @@
import asyncio
from networking.Networking import Networking
from __main__ import networking
class InputHandler:
@@ -10,7 +9,7 @@ class InputHandler:
async def handleInputs(self):
self.isRunning = True
while self.isRunning:
event = await Networking().getInputEvent()
event = await networking.getInputEvent()
self.targets[event["name"]].hit() #Todo
def stop(self):