3
0
Fork 0
forked from suyu/suyu

Update src/input_common/main.cpp

Co-authored-by: LC <mathew1800@gmail.com>

update libusb submodule (hopefully windows build error fixed)
This commit is contained in:
ameerj 2020-06-22 10:40:27 -04:00 committed by Ameer
parent 28046ae3a9
commit f5d2a1e8bd
2 changed files with 2 additions and 2 deletions

2
externals/libusb vendored

@ -1 +1 @@
Subproject commit c5085fc4eb1a83e6a8921a43b8d77f162b9e3b41
Subproject commit 71c3083fdd07a5a8c30a469800563bfbd9f9d4ad

View file

@ -29,7 +29,7 @@ static std::shared_ptr<GCButtonFactory> gcbuttons;
static std::shared_ptr<GCAnalogFactory> gcanalog;
void Init() {
std::shared_ptr<GCAdapter::Adapter> gcadapter = std::make_shared<GCAdapter::Adapter>();
auto gcadapter = std::make_shared<GCAdapter::Adapter>();
gcbuttons = std::make_shared<GCButtonFactory>(gcadapter);
Input::RegisterFactory<Input::ButtonDevice>("gcpad", gcbuttons);
gcanalog = std::make_shared<GCAnalogFactory>(gcadapter);