diff options
Diffstat (limited to 'src/input_common')
| -rw-r--r-- | src/input_common/keyboard.cpp | 3 | ||||
| -rw-r--r-- | src/input_common/main.cpp | 2 | ||||
| -rw-r--r-- | src/input_common/sdl/sdl_impl.cpp | 1 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/input_common/keyboard.cpp b/src/input_common/keyboard.cpp index eb6c3112b..afb8e6612 100644 --- a/src/input_common/keyboard.cpp +++ b/src/input_common/keyboard.cpp | |||
| @@ -49,9 +49,8 @@ public: | |||
| 49 | void ChangeKeyStatus(int key_code, bool pressed) { | 49 | void ChangeKeyStatus(int key_code, bool pressed) { |
| 50 | std::lock_guard guard{mutex}; | 50 | std::lock_guard guard{mutex}; |
| 51 | for (const KeyButtonPair& pair : list) { | 51 | for (const KeyButtonPair& pair : list) { |
| 52 | if (pair.key_code == key_code) { | 52 | if (pair.key_code == key_code) |
| 53 | pair.key_button->status.store(pressed); | 53 | pair.key_button->status.store(pressed); |
| 54 | } | ||
| 55 | } | 54 | } |
| 56 | } | 55 | } |
| 57 | 56 | ||
diff --git a/src/input_common/main.cpp b/src/input_common/main.cpp index f13420b38..fd0af1019 100644 --- a/src/input_common/main.cpp +++ b/src/input_common/main.cpp | |||
| @@ -45,6 +45,7 @@ void Init() { | |||
| 45 | #ifdef HAVE_SDL2 | 45 | #ifdef HAVE_SDL2 |
| 46 | sdl = SDL::Init(); | 46 | sdl = SDL::Init(); |
| 47 | #endif | 47 | #endif |
| 48 | |||
| 48 | udp = CemuhookUDP::Init(); | 49 | udp = CemuhookUDP::Init(); |
| 49 | } | 50 | } |
| 50 | 51 | ||
| @@ -111,6 +112,7 @@ std::vector<std::unique_ptr<DevicePoller>> GetPollers(DeviceType type) { | |||
| 111 | #ifdef HAVE_SDL2 | 112 | #ifdef HAVE_SDL2 |
| 112 | pollers = sdl->GetPollers(type); | 113 | pollers = sdl->GetPollers(type); |
| 113 | #endif | 114 | #endif |
| 115 | |||
| 114 | return pollers; | 116 | return pollers; |
| 115 | } | 117 | } |
| 116 | 118 | ||
diff --git a/src/input_common/sdl/sdl_impl.cpp b/src/input_common/sdl/sdl_impl.cpp index 6b264f2a6..675b477fa 100644 --- a/src/input_common/sdl/sdl_impl.cpp +++ b/src/input_common/sdl/sdl_impl.cpp | |||
| @@ -444,7 +444,6 @@ private: | |||
| 444 | class SDLAnalogFactory final : public Input::Factory<Input::AnalogDevice> { | 444 | class SDLAnalogFactory final : public Input::Factory<Input::AnalogDevice> { |
| 445 | public: | 445 | public: |
| 446 | explicit SDLAnalogFactory(SDLState& state_) : state(state_) {} | 446 | explicit SDLAnalogFactory(SDLState& state_) : state(state_) {} |
| 447 | |||
| 448 | /** | 447 | /** |
| 449 | * Creates analog device from joystick axes | 448 | * Creates analog device from joystick axes |
| 450 | * @param params contains parameters for creating the device: | 449 | * @param params contains parameters for creating the device: |