Qt_applets: Use new input

This commit is contained in:
german77 2021-09-20 20:19:28 -05:00 committed by Narr the Reg
parent 84bda35f14
commit 5709d1271e
5 changed files with 67 additions and 48 deletions

View file

@ -6,8 +6,11 @@
#include <thread>
#include "common/assert.h"
#include "common/param_package.h"
#include "common/string_util.h"
#include "core/core.h"
#include "core/hid/emulated_controller.h
#include "core/hid/hid_types.h
#include "core/hle/lock.h"
#include "core/hle/service/hid/controllers/npad.h"
#include "core/hle/service/hid/hid.h"
@ -48,7 +51,8 @@ void UpdateController(Settings::ControllerType controller_type, std::size_t npad
->GetAppletResource()
->GetController<Service::HID::Controller_NPad>(Service::HID::HidController::NPad);
npad.UpdateControllerAt(npad.MapSettingsTypeToNPad(controller_type), npad_index, connected);
npad.UpdateControllerAt(Core::HID::EmulatedController::MapSettingsTypeToNPad(controller_type),
npad_index, connected);
}
// Returns true if the given controller type is compatible with the given parameters.