Subversion Repositories svn.mios32

Rev

Rev 1316 | Rev 1336 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1316 Rev 1319
Line 1... Line 1...
1
// $Id: seq_ui.c 1316 2011-08-30 21:20:05Z tk $
1
// $Id: seq_ui.c 1319 2011-09-01 23:12:10Z tk $
2
/*
2
/*
3
 * User Interface Routines
3
 * User Interface Routines
4
 *
4
 *
5
 * ==========================================================================
5
 * ==========================================================================
6
 *
6
 *
Line 63... Line 63...
63
u8 ui_selected_trg_layer;
63
u8 ui_selected_trg_layer;
64
u8 ui_selected_instrument;
64
u8 ui_selected_instrument;
65
u8 ui_selected_step_view;
65
u8 ui_selected_step_view;
66
u8 ui_selected_step;
66
u8 ui_selected_step;
67
u8 ui_selected_item;
67
u8 ui_selected_item;
-
 
68
u16 ui_selected_gp_buttons;
68
69
69
u8 ui_selected_item;
70
u8 ui_selected_item;
70
71
71
u16 ui_hold_msg_ctr;
72
u16 ui_hold_msg_ctr;
72
73
Line 137... Line 138...
137
  ui_selected_trg_layer = 0;
138
  ui_selected_trg_layer = 0;
138
  ui_selected_instrument = 0;
139
  ui_selected_instrument = 0;
139
  ui_selected_step_view = 0;
140
  ui_selected_step_view = 0;
140
  ui_selected_step = 0;
141
  ui_selected_step = 0;
141
  ui_selected_item = 0;
142
  ui_selected_item = 0;
-
 
143
  ui_selected_gp_buttons = 0;
142
144
143
  ui_hold_msg_ctr = 0;
145
  ui_hold_msg_ctr = 0;
144
  ui_msg_ctr = 0;
146
  ui_msg_ctr = 0;
145
  ui_delayed_action_ctr = 0;
147
  ui_delayed_action_ctr = 0;
146
148
Line 343... Line 345...
343
  // in MENU page: overrule GP buttons as long as MENU button is pressed/active
345
  // in MENU page: overrule GP buttons as long as MENU button is pressed/active
344
  if( seq_ui_button_state.MENU_PRESSED ) {
346
  if( seq_ui_button_state.MENU_PRESSED ) {
345
    if( depressed ) return -1;
347
    if( depressed ) return -1;
346
    SEQ_UI_PageSet(ui_shortcut_menu_pages[gp]);
348
    SEQ_UI_PageSet(ui_shortcut_menu_pages[gp]);
347
  } else {
349
  } else {
-
 
350
    if( depressed )
-
 
351
      ui_selected_gp_buttons &= ~(1 << gp);
-
 
352
    else
-
 
353
      ui_selected_gp_buttons |= (1 << gp);
-
 
354
348
    // forward to menu page
355
    // forward to menu page
349
    if( ui_button_callback != NULL ) {
356
    if( ui_button_callback != NULL ) {
350
      ui_button_callback(gp, depressed);
357
      ui_button_callback(gp, depressed);
351
      ui_cursor_flash_ctr = ui_cursor_flash_overrun_ctr = 0;
358
      ui_cursor_flash_ctr = ui_cursor_flash_overrun_ctr = 0;
352
    }
359
    }