service: hid: Create appropriate hid resources

This commit is contained in:
Narr the Reg 2023-11-17 11:46:26 -06:00 committed by german77
parent 8da5bd27e9
commit cff2d0e19e
36 changed files with 1634 additions and 1424 deletions

View file

@ -16,7 +16,7 @@ enum class NpadButton : u64;
}
namespace Service::HID {
class Controller_NPad;
class NPad;
}
/**
@ -101,7 +101,7 @@ public:
}
private:
Service::HID::Controller_NPad& npad;
std::shared_ptr<Service::HID::NPad> npad;
/// Stores 9 consecutive button states polled from HID.
std::array<Core::HID::NpadButton, 9> button_states{};