MCPcopy Create free account
hub / github.com/cathery/sys-con / Initialize

Method Initialize

source/ControllerSwitch/SwitchAbstractedPadHandler.cpp:17–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15}
16
17Result SwitchAbstractedPadHandler::Initialize()
18{
19 R_TRY(m_controller->Initialize());
20
21 if (DoesControllerSupport(GetController()->GetType(), SUPPORTS_NOTHING))
22 return 0;
23
24 R_TRY(InitAbstractedPadState());
25
26 if (DoesControllerSupport(m_controller->GetType(), SUPPORTS_PAIRING))
27 {
28 R_TRY(InitOutputThread());
29 }
30
31 R_TRY(InitInputThread());
32
33 return 0;
34}
35
36void SwitchAbstractedPadHandler::Exit()
37{

Callers

nothing calls this directly

Calls 2

DoesControllerSupportFunction · 0.85
GetTypeMethod · 0.45

Tested by

no test coverage detected