mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-18 20:09:44 -04:00
RDS radiotext transmit (group 2A)
Keyboard/Unistroke text input method selection
This commit is contained in:
parent
ceced96673
commit
e15f659a6a
34 changed files with 574 additions and 169 deletions
|
@ -51,7 +51,8 @@ HandWriteView::HandWriteView(
|
|||
// Handwriting alphabet definition here
|
||||
handwriting = &handwriting_unistroke;
|
||||
|
||||
//memcpy(txtinput, txt, max_len+1);
|
||||
txtidx = strlen(txt);
|
||||
memcpy(txtinput, txt, max_len + 1);
|
||||
|
||||
add_children({ {
|
||||
&text_input,
|
||||
|
@ -108,12 +109,12 @@ HandWriteView::HandWriteView(
|
|||
};
|
||||
|
||||
button_ok.on_select = [this, &nav, txt, max_len](Button&) {
|
||||
//memcpy(txt, txtinput, max_len+1);
|
||||
//on_changed(this->value());
|
||||
memcpy(txt, txtinput, max_len + 1);
|
||||
on_changed(this->value());
|
||||
nav.pop();
|
||||
};
|
||||
|
||||
//update_text();
|
||||
update_text();
|
||||
}
|
||||
|
||||
bool HandWriteView::on_touch(const TouchEvent event) {
|
||||
|
@ -385,6 +386,10 @@ void HandWriteView::on_show() {
|
|||
clear_zone(Color::black(), false);
|
||||
}
|
||||
|
||||
void HandWriteView::on_hide() {
|
||||
EventDispatcher::message_map().unregister_handler(Message::ID::DisplayFrameSync);
|
||||
}
|
||||
|
||||
char * HandWriteView::value() {
|
||||
return txtinput;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue