From c40f4d594a7eefa7c109eda93685a27e267d3271 Mon Sep 17 00:00:00 2001 From: klonfish Date: Tue, 27 Dec 2016 13:36:02 +0100 Subject: [PATCH] Fixed things in game menu --- gamemenu.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gamemenu.py b/gamemenu.py index f8e363b..a80b583 100755 --- a/gamemenu.py +++ b/gamemenu.py @@ -6,6 +6,8 @@ import enum import threading import argparse import subprocess +import socket +import struct import blup.frame import blup.output @@ -29,7 +31,7 @@ class Game(object): if self.pygame: args += ['--pygame'] if self.output is not None: - args += ['--output', self.output] + args += ['--out', self.output] return args class PongGame(Game): @@ -257,7 +259,9 @@ class BalanceInput(AbstractInput, threading.Thread): print('player_id=%d debounce %s' % (self.player_id, evt)) continue - self.evt = evt + if self.lastevent != evt: + self.evt = evt + self.lastevent = evt print('player_id=%d event=%s' % (self.player_id, self.evt)) else: