Просмотр исходного кода

input_common/input_mapping: Add missing includes

Ensures that the class always sees the types it needs.
Lioncash 4 лет назад
Родитель
Сommit
0849be094e
2 измененных файлов с 6 добавлено и 1 удалено
  1. 0 1
      src/input_common/input_mapping.cpp
  2. 6 0
      src/input_common/input_mapping.h

+ 0 - 1
src/input_common/input_mapping.cpp

@@ -2,7 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included
 
-#include "common/common_types.h"
 #include "common/settings.h"
 #include "input_common/input_engine.h"
 #include "input_common/input_mapping.h"

+ 6 - 0
src/input_common/input_mapping.h

@@ -3,8 +3,14 @@
 // Refer to the license.txt file included
 
 #pragma once
+
+#include "common/param_package.h"
 #include "common/threadsafe_queue.h"
 
+namespace InputCommon::Polling {
+enum class InputType;
+}
+
 namespace InputCommon {
 class InputEngine;
 struct MappingData;