Use only left button for screen cycling
This commit is contained in:
		@ -36,8 +36,11 @@ void ui_thread_entry(ULONG _) {
 | 
				
			|||||||
        button_states[i] = state;
 | 
					        button_states[i] = state;
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    if ((press_event == 1 || press_event == 2) && button_states[1] &&
 | 
					    // FIXME: The right button doesn't work :(
 | 
				
			||||||
        button_states[2]) {
 | 
					
 | 
				
			||||||
 | 
					    // if ((press_event == 1 || press_event == 2) && button_states[1] &&
 | 
				
			||||||
 | 
					    //     button_states[2]) {
 | 
				
			||||||
 | 
					    if (press_event == 1 && button_states[1]) {
 | 
				
			||||||
      tx_event_flags_set(&gui_update_events, GUI_UPDATE_NEXT_SCREEN, TX_OR);
 | 
					      tx_event_flags_set(&gui_update_events, GUI_UPDATE_NEXT_SCREEN, TX_OR);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    vehicle_broadcast_buttons(button_states);
 | 
					    vehicle_broadcast_buttons(button_states);
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user