From 54091dcfbd981f58713dec28ad63e898b3402559 Mon Sep 17 00:00:00 2001 From: 9and3r <9and3r@gmail.com> Date: Sun, 24 May 2015 23:43:18 +0200 Subject: [PATCH] Fix gpio input --- mopidy_touchscreen/input/gpio_inpput_manager.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mopidy_touchscreen/input/gpio_inpput_manager.py b/mopidy_touchscreen/input/gpio_inpput_manager.py index b809542..4e6b012 100644 --- a/mopidy_touchscreen/input/gpio_inpput_manager.py +++ b/mopidy_touchscreen/input/gpio_inpput_manager.py @@ -46,9 +46,9 @@ def right(channel): type = pygame.KEYUP else: type = pygame.KEYDOWN + dict['unicode'] = None dict['key'] = pygame.K_RIGHT event = pygame.event.Event(type, dict) - event.unicode = None pygame.event.post(event) @@ -58,9 +58,9 @@ def left(channel): type = pygame.KEYUP else: type = pygame.KEYDOWN + dict['unicode'] = None dict['key'] = pygame.K_RIGHT event = pygame.event.Event(type, dict) - event.unicode = None pygame.event.post(event) @@ -70,9 +70,9 @@ def down(channel): type = pygame.KEYUP else: type = pygame.KEYDOWN + dict['unicode'] = None dict['key'] = pygame.K_DOWN event = pygame.event.Event(type, dict) - event.unicode = None pygame.event.post(event) @@ -82,9 +82,9 @@ def up(channel): type = pygame.KEYUP else: type = pygame.KEYDOWN + dict['unicode'] = None dict['key'] = pygame.K_UP event = pygame.event.Event(type, dict) - event.unicode = None pygame.event.post(event) @@ -94,7 +94,7 @@ def enter(channel): type = pygame.KEYUP else: type = pygame.KEYDOWN + dict['unicode'] = None dict['key'] = pygame.K_RETURN event = pygame.event.Event(type, dict) - event.unicode = None pygame.event.post(event)