Explorar o código

testbed: input command NONE

skypjack hai 5 días
pai
achega
32b0a4da53
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      testbed/component/input_listener_component.h

+ 2 - 1
testbed/component/input_listener_component.h

@@ -4,13 +4,14 @@ namespace testbed {
 
 
 struct input_listener_component {
 struct input_listener_component {
     enum class type {
     enum class type {
+        NONE,
         UP,
         UP,
         DOWN,
         DOWN,
         LEFT,
         LEFT,
         RIGHT
         RIGHT
     };
     };
 
 
-    type command;
+    type command{type::NONE};
 };
 };
 
 
 } // namespace testbed
 } // namespace testbed