mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-24 01:11:39 -04:00
Add OptionsField event for on_focus.
TODO: So poorly named! Should be on_focus, but requires sweeping changes. Ugh.
This commit is contained in:
parent
fece0a5e1b
commit
be8c1307e2
2 changed files with 8 additions and 0 deletions
|
@ -473,6 +473,12 @@ void OptionsField::paint(Painter& painter) {
|
|||
}
|
||||
}
|
||||
|
||||
void OptionsField::on_focus() {
|
||||
if( on_show_options ) {
|
||||
on_show_options();
|
||||
}
|
||||
}
|
||||
|
||||
bool OptionsField::on_encoder(const EncoderEvent delta) {
|
||||
set_selected_index(selected_index() + delta);
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue