web_applet: Replace HIDButton with NpadButton

This commit is contained in:
german77 2021-10-24 01:02:56 -05:00 committed by Narr the Reg
parent d813cbd592
commit 6743753bc7
3 changed files with 42 additions and 34 deletions

View file

@ -28,7 +28,8 @@ namespace {
constexpr std::size_t HANDHELD_INDEX = 8;
void UpdateController(Core::HID::EmulatedController* controller, Core::HID::NpadType controller_type, bool connected) {
void UpdateController(Core::HID::EmulatedController* controller,
Core::HID::NpadType controller_type, bool connected) {
if (controller->IsConnected()) {
controller->Disconnect();
}