فهرست منبع

input_common/input_mapping: Add missing includes

Ensures that the class always sees the types it needs.
Lioncash 4 سال پیش
والد
کامیت
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;