Move controller creation to System class, switch shared_ptr to unique_ptr

This commit is contained in:
Connor McLaughlin
2019-12-14 23:20:24 +10:00
parent 5fd421860a
commit ea0845d5ad
14 changed files with 56 additions and 47 deletions

View File

@ -23,7 +23,7 @@ bool Controller::Transfer(const u8 data_in, u8* data_out)
void Controller::SetButtonState(s32 button_code, bool pressed) {}
std::shared_ptr<Controller> Controller::Create(std::string_view type_name)
std::unique_ptr<Controller> Controller::Create(std::string_view type_name)
{
if (type_name == "DigitalController")
return DigitalController::Create();