Browse Source

Faster response in game menu

master
klonfish 8 years ago committed by klonfish
parent
commit
b6aaaa1fff
  1. 8
      gamemenu.py

8
gamemenu.py

@ -227,10 +227,10 @@ class BalanceInput(AbstractInput, threading.Thread):
print('player_id=%d xbal=%d ybal=%d' % (self.player_id, xbal, ybal)) print('player_id=%d xbal=%d ybal=%d' % (self.player_id, xbal, ybal))
THRESHOLD = 40 THRESHOLD = 40
MIN_TIMES = { MIN_TIMES = {
InputEvent.LEFT: 0.1, InputEvent.LEFT: 0.05,
InputEvent.RIGHT: 0.1, InputEvent.RIGHT: 0.05,
InputEvent.UP: 0.1, InputEvent.UP: 0.05,
InputEvent.DOWN: 0.1, InputEvent.DOWN: 0.05,
} }
if self.player_present: if self.player_present:
if xbal == -128 or ybal == -128: if xbal == -128 or ybal == -128:

Loading…
Cancel
Save