mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 08:45:45 +00:00
Tidy up the pointers, use pair over tuple where appropriate
This commit is contained in:
parent
a0f8f1dc5e
commit
5479427335
4 changed files with 22 additions and 24 deletions
|
@ -25,12 +25,11 @@ static std::shared_ptr<MotionEmu> motion_emu;
|
|||
static std::unique_ptr<SDL::State> sdl;
|
||||
#endif
|
||||
static std::unique_ptr<CemuhookUDP::State> udp;
|
||||
static std::shared_ptr<GCAdapter::Adapter> gcadapter;
|
||||
static std::shared_ptr<GCButtonFactory> gcbuttons;
|
||||
static std::shared_ptr<GCAnalogFactory> gcanalog;
|
||||
|
||||
void Init() {
|
||||
gcadapter = std::make_shared<GCAdapter::Adapter>();
|
||||
std::shared_ptr<GCAdapter::Adapter> gcadapter = std::make_shared<GCAdapter::Adapter>();
|
||||
gcbuttons = std::make_shared<GCButtonFactory>(gcadapter);
|
||||
Input::RegisterFactory<Input::ButtonDevice>("gcpad", gcbuttons);
|
||||
gcanalog = std::make_shared<GCAnalogFactory>(gcadapter);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue