diff options
| author | FearlessTobi <thm.frey@gmail.com> | 2020-08-29 20:56:51 +0200 |
|---|---|---|
| committer | FearlessTobi <thm.frey@gmail.com> | 2020-08-29 20:56:51 +0200 |
| commit | 01dbe3a6249fe6a013c19cd3d3cf460b3a7bfe23 (patch) | |
| tree | a3c6f12346244a3757490327e3ff6e5bed09cbcb /src/input_common/main.cpp | |
| parent | 2903f0f7ce085dac988a3fcee531fb71a1ab08be (diff) | |
Address review comments and fix code compilation
Diffstat (limited to 'src/input_common/main.cpp')
| -rw-r--r-- | src/input_common/main.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/input_common/main.cpp b/src/input_common/main.cpp index f9d7b408f0..ea1a1cee63 100644 --- a/src/input_common/main.cpp +++ b/src/input_common/main.cpp @@ -175,9 +175,11 @@ const GCButtonFactory* InputSubsystem::GetGCButtons() const { return impl->gcbuttons.get(); } -void ReloadInputDevices() { - if (udp) - udp->ReloadUDPClient(); +void InputSubsystem::ReloadInputDevices() { + if (!impl->udp) { + return; + } + impl->udp->ReloadUDPClient(); } std::vector<std::unique_ptr<Polling::DevicePoller>> InputSubsystem::GetPollers( |
