|
|
@ -279,13 +279,13 @@ class BalanceInput(AbstractInput, threading.Thread): |
|
|
|
self.evt = evt |
|
|
|
self.evt = evt |
|
|
|
self.lastevt = evt |
|
|
|
self.lastevt = evt |
|
|
|
print('player_id=%d event=%s' % (self.player_id, self.evt)) |
|
|
|
print('player_id=%d event=%s' % (self.player_id, self.evt)) |
|
|
|
|
|
|
|
time.sleep(0.005) |
|
|
|
else: |
|
|
|
else: |
|
|
|
if xbal != -128 and ybal != -128: |
|
|
|
if xbal != -128 and ybal != -128: |
|
|
|
self.evt = InputEvent.STEP_ON |
|
|
|
self.evt = InputEvent.STEP_ON |
|
|
|
self.player_present = True |
|
|
|
self.player_present = True |
|
|
|
continue |
|
|
|
continue |
|
|
|
time.sleep(0.005) |
|
|
|
time.sleep(0.05) |
|
|
|
|
|
|
|
|
|
|
|
def get_event(self): |
|
|
|
def get_event(self): |
|
|
|
evt = self.evt |
|
|
|
evt = self.evt |
|
|
|