|
|
@ -200,6 +200,7 @@ class BalanceInput(AbstractInput, threading.Thread): |
|
|
|
self.evt = None |
|
|
|
self.evt = None |
|
|
|
self.lastevt = None |
|
|
|
self.lastevt = None |
|
|
|
self.player_present = False |
|
|
|
self.player_present = False |
|
|
|
|
|
|
|
self.running = False |
|
|
|
threading.Thread.__init__(self, daemon=True) |
|
|
|
threading.Thread.__init__(self, daemon=True) |
|
|
|
self.start() |
|
|
|
self.start() |
|
|
|
|
|
|
|
|
|
|
@ -272,7 +273,8 @@ class BalanceInput(AbstractInput, threading.Thread): |
|
|
|
|
|
|
|
|
|
|
|
def get_event(self): |
|
|
|
def get_event(self): |
|
|
|
evt = self.evt |
|
|
|
evt = self.evt |
|
|
|
self.evt = None |
|
|
|
if self.running: |
|
|
|
|
|
|
|
self.evt = None |
|
|
|
return evt |
|
|
|
return evt |
|
|
|
|
|
|
|
|
|
|
|
def start_game(game, players): |
|
|
|
def start_game(game, players): |
|
|
|