Skip to content

Commit 70438f4

Browse files
committed
Fix focusing behavior.
1 parent 0c6e8a7 commit 70438f4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

SerialPrograms/Source/NintendoSwitch/Framework/UI/NintendoSwitch_CommandRow.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ CommandRow::CommandRow(
179179

180180
m_session.add_listener(*this);
181181
m_controller.add_listener(*this);
182+
// global_input_add_listener(*this);
182183
}
183184

184185

@@ -203,8 +204,8 @@ void CommandRow::run_controller_input(ControllerInputState& state){
203204
}
204205
void CommandRow::set_focus(bool focused){
205206
if (focused){
207+
global_input_add_listener(*this);
206208
if (allow_controller_input()){
207-
global_input_add_listener(*this);
208209
}
209210
}else{
210211
global_input_clear_state();

0 commit comments

Comments
 (0)