diff options
| author | 2023-12-16 11:46:51 -0500 | |
|---|---|---|
| committer | 2023-12-16 11:46:51 -0500 | |
| commit | b8f83aa4bf13f6783e31f190d530ef7be527bf49 (patch) | |
| tree | 952d90666b0d253dce28742197d053d1db213eeb /src/core/hid/input_interpreter.cpp | |
| parent | ssl: fix output byte buffer size issue (#12372) (diff) | |
| parent | core: Make sure npad is initialized (diff) | |
| download | yuzu-b8f83aa4bf13f6783e31f190d530ef7be527bf49.tar.gz yuzu-b8f83aa4bf13f6783e31f190d530ef7be527bf49.tar.xz yuzu-b8f83aa4bf13f6783e31f190d530ef7be527bf49.zip | |
Merge pull request #12359 from german77/real_shared
service: hid: Allow to create multiple instances of shared memory
Diffstat (limited to 'src/core/hid/input_interpreter.cpp')
| -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) | |||
| 20 | InputInterpreter::~InputInterpreter() = default; | 20 | InputInterpreter::~InputInterpreter() = default; |
| 21 | 21 | ||
| 22 | void InputInterpreter::PollInput() { | 22 | void InputInterpreter::PollInput() { |
| 23 | if (npad == nullptr) { | ||
| 24 | return; | ||
| 25 | } | ||
| 23 | const auto button_state = npad->GetAndResetPressState(); | 26 | const auto button_state = npad->GetAndResetPressState(); |
| 24 | 27 | ||
| 25 | previous_index = current_index; | 28 | previous_index = current_index; |