Skip to content

Commit 06cea40

Browse files
committed
Fix joycon datespam.
1 parent 139d10a commit 06cea40

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

SerialPrograms/Source/NintendoSwitch/Programs/NintendoSwitch_Navigation.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,14 +181,15 @@ void home_to_date_time(JoyconContext& context, bool to_date_change){
181181
//From ControllerPerformanceClass::SerialPABotBase_Wireless_ESP32
182182
//as Joycon will only have that controller type
183183

184+
pbf_move_joystick(context, 255, 128, 2*unit, unit);
184185
pbf_move_joystick(context, 255, 128, 2*unit, unit);
185186
pbf_move_joystick(context, 255, 128, 2*unit, unit);
186187

187188
// Down twice in case we drop one.
188189
pbf_move_joystick(context, 128, 255, 2*unit, unit);
189190
pbf_move_joystick(context, 128, 255, 2*unit, unit);
190191

191-
pbf_move_joystick(context, 255, 128, 2*unit, unit);
192+
pbf_move_joystick(context, 0, 128, 2*unit, unit);
192193

193194
// Press A multiple times to make sure one goes through.
194195
pbf_press_button(context, BUTTON_A, 2*unit, unit);

0 commit comments

Comments
 (0)