diff options
| author | liamwhite <liamwhite@users.noreply.github.com> | 2023-11-23 12:36:19 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-23 12:36:19 -0500 |
| commit | 0b766e4523dea156d69aab1a2a43b55f50c65071 (patch) | |
| tree | 44715eb026414d084f3f493f137b578339884a99 /src/core/hid/input_interpreter.cpp | |
| parent | 91c12db07098625756338e682a4d300a27d7978c (diff) | |
| parent | cff2d0e19e164d879b57bab9d06306fa70a1049e (diff) | |
Merge pull request #12076 from german77/resource
service: hid: Create appropriate hid resources
Diffstat (limited to 'src/core/hid/input_interpreter.cpp')
| -rw-r--r-- | src/core/hid/input_interpreter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hid/input_interpreter.cpp b/src/core/hid/input_interpreter.cpp index 11359f318..a6bdd28f2 100644 --- a/src/core/hid/input_interpreter.cpp +++ b/src/core/hid/input_interpreter.cpp @@ -13,14 +13,14 @@ InputInterpreter::InputInterpreter(Core::System& system) : npad{system.ServiceManager() .GetService<Service::HID::IHidServer>("hid") ->GetResourceManager() - ->GetController<Service::HID::Controller_NPad>(Service::HID::HidController::NPad)} { + ->GetNpad()} { ResetButtonStates(); } InputInterpreter::~InputInterpreter() = default; void InputInterpreter::PollInput() { - const auto button_state = npad.GetAndResetPressState(); + const auto button_state = npad->GetAndResetPressState(); previous_index = current_index; current_index = (current_index + 1) % button_states.size(); |
