88#include " Common/Cpp/Options/CheckboxDropdownDatabase.h"
99#include " NintendoSwitch_JoyconTable.h"
1010
11- // REMOVE
12- #include " Common/Compiler.h"
13- #include < iostream>
14- using std::cout;
15- using std::endl;
16-
1711namespace PokemonAutomation {
1812namespace NintendoSwitch {
1913
@@ -29,7 +23,7 @@ const CheckboxDropdownDatabase<Button>& LeftJoycon_Button_Database(){
2923 {Button::BUTTON_ZL, " ZL" , " ZL" },
3024 {Button::BUTTON_MINUS, " -" , " -" },
3125 {Button::BUTTON_LCLICK, " L-click" , " L-click" },
32- {Button::BUTTON_CAPTURE, " capture " , " Capture" },
26+ {Button::BUTTON_CAPTURE, " Capture " , " Capture" },
3327 {Button::BUTTON_LEFT_SR, " SR" , " SR" },
3428 {Button::BUTTON_LEFT_SL, " SL" , " SL" },
3529 };
@@ -45,16 +39,15 @@ const CheckboxDropdownDatabase<Button>& RightJoycon_Button_Database(){
4539 {Button::BUTTON_R, " RL" , " RL" },
4640 {Button::BUTTON_PLUS, " +" , " +" },
4741 {Button::BUTTON_RCLICK, " R-click" , " R-click" },
48- {Button::BUTTON_HOME, " home " , " Home" },
42+ {Button::BUTTON_HOME, " Home " , " Home" },
4943 {Button::BUTTON_RIGHT_SR, " SR" , " SR" },
5044 {Button::BUTTON_RIGHT_SL, " SL" , " SL" },
5145 {Button::BUTTON_C, " C" , " C (Switch 2)" },
5246 };
5347 return database;
5448}
5549
56- PA_NO_INLINE int initialize_Joycons (){
57- cout << " asdf" << endl;
50+ void register_joycon_tables (){
5851 ControllerCommandTable::register_controller_type (
5952 ControllerClass::NintendoSwitch_LeftJoycon,
6053 ControllerCommandTable::make_row<JoyconStateRow>,
@@ -75,9 +68,7 @@ PA_NO_INLINE int initialize_Joycons(){
7568 " Joystick (Y)" ,
7669 }
7770 );
78- return 123 ;
7971}
80- int init_Joycons = initialize_Joycons();
8172
8273
8374
@@ -87,7 +78,7 @@ JoyconStateRow::JoyconStateRow(EditableTableOption& parent_table)
8778 : ControllerStateRow(parent_table)
8879 , DURATION(LockMode::LOCK_WHILE_RUNNING, " 200 ms" )
8980 , BUTTONS(
90- " Buttons " ,
81+ " " ,
9182 static_cast <ControllerCommandTable&>(parent_table).type() == ControllerClass::NintendoSwitch_LeftJoycon
9283 ? LeftJoycon_Button_Database()
9384 : RightJoycon_Button_Database(),
0 commit comments