Skip to content

Commit bc5bb98

Browse files
committed
Don't scroll over the sleep button.
1 parent e5f72bc commit bc5bb98

1 file changed

Lines changed: 4 additions & 10 deletions

File tree

SerialPrograms/Source/NintendoSwitch/Programs/DateSpam/NintendoSwitch2_HomeToDateTime.cpp

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -92,15 +92,15 @@ void home_to_settings_Switch2_procon_blind(
9292
Milliseconds unit0 = 24ms + tv;
9393
Milliseconds unit1 = 32ms + tv;
9494

95-
ssf_issue_scroll(context, SSF_SCROLL_RIGHT, unit1);
9695
ssf_issue_scroll(context, SSF_SCROLL_RIGHT, unit1);
9796
ssf_issue_scroll(context, SSF_SCROLL_RIGHT, unit1);
9897

9998
// Down twice in case we drop one.
10099
ssf_issue_scroll(context, SSF_SCROLL_DOWN, unit1);
101100
ssf_issue_scroll(context, SSF_SCROLL_DOWN, unit1);
102101

103-
ssf_issue_scroll(context, SSF_SCROLL_LEFT, unit1);
102+
ssf_issue_scroll(context, SSF_SCROLL_RIGHT, unit1);
103+
ssf_issue_scroll(context, SSF_SCROLL_RIGHT, unit1);
104104

105105
// Two A presses in case we drop the 1st one.
106106
ssf_press_button(context, BUTTON_A, unit0);
@@ -111,9 +111,6 @@ void home_to_settings_Switch2_procon_blind(
111111
}
112112
ssf_issue_scroll(context, SSF_SCROLL_DOWN, 1000ms, 1000ms, unit0);
113113

114-
// Scroll left and press A to exit the sleep menu if we happened to
115-
// land there.
116-
ssf_issue_scroll(context, SSF_SCROLL_LEFT, unit0);
117114
ssf_press_button(context, BUTTON_A, unit0);
118115

119116
for (size_t c = 0; c < 2; c++){
@@ -132,15 +129,15 @@ void home_to_settings_Switch2_joycon_blind(
132129
Milliseconds unit0 = 24ms + tv;
133130
Milliseconds unit1 = 32ms + tv;
134131

135-
pbf_move_joystick(context, {+1, 0}, 2*unit1, unit1);
136132
pbf_move_joystick(context, {+1, 0}, 2*unit1, unit1);
137133
pbf_move_joystick(context, {+1, 0}, 2*unit1, unit1);
138134

139135
// Down twice in case we drop one.
140136
pbf_move_joystick(context, {0, -1}, 2*unit1, unit1);
141137
pbf_move_joystick(context, {0, -1}, 2*unit1, unit1);
142138

143-
pbf_move_joystick(context, {-1, 0}, 2*unit1, unit1);
139+
pbf_move_joystick(context, {+1, 0}, 2*unit1, unit1);
140+
pbf_move_joystick(context, {+1, 0}, 2*unit1, unit1);
144141

145142
// Press A multiple times to make sure one goes through.
146143
pbf_press_button(context, BUTTON_A, 2*unit0, unit0);
@@ -149,9 +146,6 @@ void home_to_settings_Switch2_joycon_blind(
149146

150147
pbf_move_joystick(context, {0, -1}, 2000ms, 0ms);
151148

152-
// Scroll left and press A to exit the sleep menu if we happened to
153-
// land there.
154-
pbf_move_joystick(context, {-1, 0}, 2*unit0, unit0);
155149
pbf_press_button(context, BUTTON_A, 2*unit0, unit0);
156150

157151
for (size_t c = 0; c < 2; c++){

0 commit comments

Comments
 (0)