Subversion Repositories svn.mios32

Rev

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

Rev 2294 Rev 2532
Line 1... Line 1...
1
// $Id: seq_ui_parsel.c 2294 2016-02-08 21:21:34Z tk $
1
// $Id: seq_ui_parsel.c 2532 2017-10-12 21:50:45Z tk $
2
/*
2
/*
3
 * Trigger selection page (entered with Parameter Layer C button)
3
 * Trigger selection page (entered with Parameter Layer C button)
4
 *
4
 *
5
 * ==========================================================================
5
 * ==========================================================================
6
 *
6
 *
Line 78... Line 78...
78
// Should return:
78
// Should return:
79
//   1 if value has been changed
79
//   1 if value has been changed
80
//   0 if value hasn't been changed
80
//   0 if value hasn't been changed
81
//  -1 if invalid or unsupported gp_button
81
//  -1 if invalid or unsupported gp_button
82
/////////////////////////////////////////////////////////////////////////////
82
/////////////////////////////////////////////////////////////////////////////
83
static s32 Button_Handler(seq_ui_button_t button, s32 depressed)
83
s32 SEQ_UI_PARSEL_Button_Handler(seq_ui_button_t button, s32 depressed)
84
{
84
{
85
  if( depressed ) return 0; // ignore when button depressed
85
  if( depressed ) return 0; // ignore when button depressed
86
86
87
#if 0
87
#if 0
88
  // leads to: comparison is always true due to limited range of data type
88
  // leads to: comparison is always true due to limited range of data type
Line 179... Line 179...
179
// Initialisation
179
// Initialisation
180
/////////////////////////////////////////////////////////////////////////////
180
/////////////////////////////////////////////////////////////////////////////
181
s32 SEQ_UI_PARSEL_Init(u32 mode)
181
s32 SEQ_UI_PARSEL_Init(u32 mode)
182
{
182
{
183
  // install callback routines
183
  // install callback routines
184
  SEQ_UI_InstallButtonCallback(Button_Handler);
184
  SEQ_UI_InstallButtonCallback(SEQ_UI_PARSEL_Button_Handler);
185
  SEQ_UI_InstallEncoderCallback(Encoder_Handler);
185
  SEQ_UI_InstallEncoderCallback(Encoder_Handler);
186
  SEQ_UI_InstallLEDCallback(LED_Handler);
186
  SEQ_UI_InstallLEDCallback(LED_Handler);
187
  SEQ_UI_InstallLCDCallback(LCD_Handler);
187
  SEQ_UI_InstallLCDCallback(LCD_Handler);
188
188
189
  // we want to show horizontal VU meters
189
  // we want to show horizontal VU meters