2020-02-09 19:01:52 -05:00
|
|
|
#pragma once
|
|
|
|
|
2020-04-25 22:47:02 -04:00
|
|
|
#include "button.h"
|
2020-02-09 20:04:47 -05:00
|
|
|
#include "menu.h"
|
2020-02-09 19:01:52 -05:00
|
|
|
|
2020-02-09 19:16:57 -05:00
|
|
|
//Returns true if button was found, false otherwise
|
2020-04-25 22:47:02 -04:00
|
|
|
bool findPressedButton(const Button* const* buttons,
|
|
|
|
const uint8_t num_buttons,
|
2020-02-09 19:16:57 -05:00
|
|
|
Button *const button_out,
|
2020-02-09 20:04:47 -05:00
|
|
|
const Point touch_point);
|
|
|
|
|
|
|
|
enum MorsePlaybackType_e : uint8_t {
|
|
|
|
PlayChar,
|
|
|
|
PlayText
|
|
|
|
};
|
|
|
|
void initSelector(int16_t *const raw_select_val_in_out,
|
2020-04-25 22:47:02 -04:00
|
|
|
const Button* const* buttons,
|
|
|
|
const uint8_t num_buttons,
|
|
|
|
const MorsePlaybackType_e);
|
2020-02-09 20:04:47 -05:00
|
|
|
|
|
|
|
void adjustSelector(int16_t *const raw_select_val_in_out,
|
|
|
|
int16_t knob,
|
2020-04-25 22:47:02 -04:00
|
|
|
const Button* const* buttons,
|
|
|
|
const uint8_t num_buttons,
|
|
|
|
const MorsePlaybackType_e);
|
2020-02-10 00:59:15 -05:00
|
|
|
|
2020-04-25 22:47:02 -04:00
|
|
|
void endSelector(const Button *const button);
|