Explorar o código

Fix gpio input

9and3r %!s(int64=10) %!d(string=hai) anos
pai
achega
c41ac0bf68
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      mopidy_touchscreen/gpio_inpput_manager.py

+ 5 - 0
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)