summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar LC2020-08-28 20:10:33 -0400
committerGravatar GitHub2020-08-28 20:10:33 -0400
commit57d9ef5a899dd32be7bae5aaeb53bc7cd2766a78 (patch)
tree32ad64a7368d1f7f0506e3a0308fc939accdd4e0
parentMerge pull request #4599 from ReinUsesLisp/amd-extended-state (diff)
parentinput_common/main: Remove unnecessary headers (diff)
downloadyuzu-57d9ef5a899dd32be7bae5aaeb53bc7cd2766a78.tar.gz
yuzu-57d9ef5a899dd32be7bae5aaeb53bc7cd2766a78.tar.xz
yuzu-57d9ef5a899dd32be7bae5aaeb53bc7cd2766a78.zip
Merge pull request #4600 from lioncash/prototype
input_common/main: Remove unimplemented prototype
-rw-r--r--src/input_common/main.h13
-rw-r--r--src/input_common/sdl/sdl_impl.cpp2
-rw-r--r--src/input_common/settings.h4
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
14namespace Common { 12namespace Common {
15class ParamPackage; 13class ParamPackage;
16} 14}
17 15
16namespace Settings::NativeAnalog {
17enum Values : int;
18}
19
20namespace Settings::NativeButton {
21enum Values : int;
22}
23
18namespace InputCommon { 24namespace InputCommon {
19namespace Polling { 25namespace 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
45std::vector<std::unique_ptr<DevicePoller>> GetPollers(DeviceType type);
46} // namespace Polling 49} // namespace Polling
47 50
48class GCAnalogFactory; 51class 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
26namespace InputCommon::SDL { 26namespace 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
11namespace Settings { 11namespace Settings {
12namespace NativeButton { 12namespace NativeButton {
13enum Values { 13enum 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
54namespace NativeAnalog { 54namespace NativeAnalog {
55enum Values { 55enum Values : int {
56 LStick, 56 LStick,
57 RStick, 57 RStick,
58 58