From c41ac0bf686cdcebd60f063c11947dfdceac1f24 Mon Sep 17 00:00:00 2001 From: 9and3r <9and3r@gmail.com> Date: Sun, 24 May 2015 23:37:24 +0200 Subject: [PATCH] Fix gpio input --- mopidy_touchscreen/gpio_inpput_manager.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mopidy_touchscreen/gpio_inpput_manager.py b/mopidy_touchscreen/gpio_inpput_manager.py index 1036c54..b809542 100644 --- a/mopidy_touchscreen/gpio_inpput_manager.py +++ b/mopidy_touchscreen/gpio_inpput_manager.py @@ -48,6 +48,7 @@ def right(channel): type = pygame.KEYDOWN dict['key'] = pygame.K_RIGHT event = pygame.event.Event(type, dict) + event.unicode = None pygame.event.post(event) @@ -59,6 +60,7 @@ def left(channel): type = pygame.KEYDOWN dict['key'] = pygame.K_RIGHT event = pygame.event.Event(type, dict) + event.unicode = None pygame.event.post(event) @@ -70,6 +72,7 @@ def down(channel): type = pygame.KEYDOWN dict['key'] = pygame.K_DOWN event = pygame.event.Event(type, dict) + event.unicode = None pygame.event.post(event) @@ -81,6 +84,7 @@ def up(channel): type = pygame.KEYDOWN dict['key'] = pygame.K_UP event = pygame.event.Event(type, dict) + event.unicode = None pygame.event.post(event) @@ -92,4 +96,5 @@ def enter(channel): type = pygame.KEYDOWN dict['key'] = pygame.K_RETURN event = pygame.event.Event(type, dict) + event.unicode = None pygame.event.post(event)