diff options
author | Narr the Reg <juangerman-13@hotmail.com> | 2023-12-15 03:04:38 +0100 |
---|---|---|
committer | Narr the Reg <juangerman-13@hotmail.com> | 2023-12-15 03:04:38 +0100 |
commit | e8ad603cd9eb198911787f747cdea38d424da838 (patch) | |
tree | c56b5098483f619bc95f67b0acaf1daf4189ccb5 /src/core/hid | |
parent | core: hid: Clean up headers (diff) | |
download | yuzu-e8ad603cd9eb198911787f747cdea38d424da838.tar yuzu-e8ad603cd9eb198911787f747cdea38d424da838.tar.gz yuzu-e8ad603cd9eb198911787f747cdea38d424da838.tar.bz2 yuzu-e8ad603cd9eb198911787f747cdea38d424da838.tar.lz yuzu-e8ad603cd9eb198911787f747cdea38d424da838.tar.xz yuzu-e8ad603cd9eb198911787f747cdea38d424da838.tar.zst yuzu-e8ad603cd9eb198911787f747cdea38d424da838.zip |
Diffstat (limited to 'src/core/hid')
-rw-r--r-- | src/core/hid/input_interpreter.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/hid/input_interpreter.cpp b/src/core/hid/input_interpreter.cpp index a6bdd28f2..072f38a68 100644 --- a/src/core/hid/input_interpreter.cpp +++ b/src/core/hid/input_interpreter.cpp @@ -20,6 +20,9 @@ InputInterpreter::InputInterpreter(Core::System& system) InputInterpreter::~InputInterpreter() = default; void InputInterpreter::PollInput() { + if (npad == nullptr) { + return; + } const auto button_state = npad->GetAndResetPressState(); previous_index = current_index; |