diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/input_common/main.h | 13 | ||||
| -rw-r--r-- | src/input_common/sdl/sdl_impl.cpp | 2 | ||||
| -rw-r--r-- | src/input_common/settings.h | 4 |
3 files changed, 11 insertions, 8 deletions
diff --git a/src/input_common/main.h b/src/input_common/main.h index f66308163..58e5dc250 100644 --- a/src/input_common/main.h +++ b/src/input_common/main.h | |||
| @@ -8,13 +8,19 @@ | |||
| 8 | #include <string> | 8 | #include <string> |
| 9 | #include <unordered_map> | 9 | #include <unordered_map> |
| 10 | #include <vector> | 10 | #include <vector> |
| 11 | #include "input_common/gcadapter/gc_poller.h" | ||
| 12 | #include "input_common/settings.h" | ||
| 13 | 11 | ||
| 14 | namespace Common { | 12 | namespace Common { |
| 15 | class ParamPackage; | 13 | class ParamPackage; |
| 16 | } | 14 | } |
| 17 | 15 | ||
| 16 | namespace Settings::NativeAnalog { | ||
| 17 | enum Values : int; | ||
| 18 | } | ||
| 19 | |||
| 20 | namespace Settings::NativeButton { | ||
| 21 | enum Values : int; | ||
| 22 | } | ||
| 23 | |||
| 18 | namespace InputCommon { | 24 | namespace InputCommon { |
| 19 | namespace Polling { | 25 | namespace Polling { |
| 20 | 26 | ||
| @@ -40,9 +46,6 @@ public: | |||
| 40 | */ | 46 | */ |
| 41 | virtual Common::ParamPackage GetNextInput() = 0; | 47 | virtual Common::ParamPackage GetNextInput() = 0; |
| 42 | }; | 48 | }; |
| 43 | |||
| 44 | // Get all DevicePoller from all backends for a specific device type | ||
| 45 | std::vector<std::unique_ptr<DevicePoller>> GetPollers(DeviceType type); | ||
| 46 | } // namespace Polling | 49 | } // namespace Polling |
| 47 | 50 | ||
| 48 | class GCAnalogFactory; | 51 | class GCAnalogFactory; |
diff --git a/src/input_common/sdl/sdl_impl.cpp b/src/input_common/sdl/sdl_impl.cpp index 7605c884d..c8d9eb2bc 100644 --- a/src/input_common/sdl/sdl_impl.cpp +++ b/src/input_common/sdl/sdl_impl.cpp | |||
| @@ -17,11 +17,11 @@ | |||
| 17 | #include <vector> | 17 | #include <vector> |
| 18 | #include <SDL.h> | 18 | #include <SDL.h> |
| 19 | #include "common/logging/log.h" | 19 | #include "common/logging/log.h" |
| 20 | #include "common/math_util.h" | ||
| 21 | #include "common/param_package.h" | 20 | #include "common/param_package.h" |
| 22 | #include "common/threadsafe_queue.h" | 21 | #include "common/threadsafe_queue.h" |
| 23 | #include "core/frontend/input.h" | 22 | #include "core/frontend/input.h" |
| 24 | #include "input_common/sdl/sdl_impl.h" | 23 | #include "input_common/sdl/sdl_impl.h" |
| 24 | #include "input_common/settings.h" | ||
| 25 | 25 | ||
| 26 | namespace InputCommon::SDL { | 26 | namespace InputCommon::SDL { |
| 27 | 27 | ||
diff --git a/src/input_common/settings.h b/src/input_common/settings.h index 8e481a7fe..2d258960b 100644 --- a/src/input_common/settings.h +++ b/src/input_common/settings.h | |||
| @@ -10,7 +10,7 @@ | |||
| 10 | 10 | ||
| 11 | namespace Settings { | 11 | namespace Settings { |
| 12 | namespace NativeButton { | 12 | namespace NativeButton { |
| 13 | enum Values { | 13 | enum Values : int { |
| 14 | A, | 14 | A, |
| 15 | B, | 15 | B, |
| 16 | X, | 16 | X, |
| @@ -52,7 +52,7 @@ extern const std::array<const char*, NumButtons> mapping; | |||
| 52 | } // namespace NativeButton | 52 | } // namespace NativeButton |
| 53 | 53 | ||
| 54 | namespace NativeAnalog { | 54 | namespace NativeAnalog { |
| 55 | enum Values { | 55 | enum Values : int { |
| 56 | LStick, | 56 | LStick, |
| 57 | RStick, | 57 | RStick, |
| 58 | 58 | ||