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