Skip to content

Commit db1803c

Browse files
committed
Fix
1 parent 064c89e commit db1803c

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

SerialPrograms/Source/NintendoSwitch/Controllers/NintendoSwitch_Joycon.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ class JoyconController : public AbstractController{
5656
JoyconController(Logger& logger, ControllerType controller_type);
5757
virtual ~JoyconController();
5858

59+
protected:
5960
// Must call before destruction begins.
6061
void stop() noexcept;
6162

SerialPrograms/Source/NintendoSwitch/Controllers/NintendoSwitch_ProController.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ class ProController : public AbstractController{
6060
ProController(Logger& logger);
6161
virtual ~ProController();
6262

63+
protected:
6364
// Must call before destruction begins.
6465
void stop() noexcept;
6566

@@ -199,7 +200,7 @@ class ProController : public AbstractController{
199200
// This will use either the dpad or either joystick - whichever is
200201
// available first in the pipeline.
201202
//
202-
// The intended use-case of this for fast scrolling in the system menu
203+
// The intended use-case of this is for fast scrolling in the system menu
203204
// where all 3 buttons have the same effect and can be used at the same
204205
// time.
205206
//

SerialPrograms/Source/NintendoSwitch/Controllers/SerialPABotBase/NintendoSwitch_SerialPABotBase_WiredController.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ SerialPABotBase_WiredController::SerialPABotBase_WiredController(
3333
: ProController(logger)
3434
, SerialPABotBase_Controller(
3535
logger,
36-
ControllerType::NintendoSwitch_WiredController,
36+
controller_type,
3737
connection
3838
)
3939
, m_controller_type(controller_type)

0 commit comments

Comments
 (0)