mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-10-16 09:41:35 +00:00
Sync with Sharebrained's fw, only Xylos TX works for now
This commit is contained in:
@@ -376,20 +376,9 @@ void HandWriteView::sample_pen() {
|
||||
}
|
||||
|
||||
void HandWriteView::on_show() {
|
||||
// Use screen refresh rate as sampling frequency
|
||||
EventDispatcher::message_map().unregister_handler(Message::ID::DisplayFrameSync);
|
||||
EventDispatcher::message_map().register_handler(Message::ID::DisplayFrameSync,
|
||||
[this](const Message* const) {
|
||||
sample_pen();
|
||||
}
|
||||
);
|
||||
clear_zone(Color::black(), false);
|
||||
}
|
||||
|
||||
void HandWriteView::on_hide() {
|
||||
EventDispatcher::message_map().unregister_handler(Message::ID::DisplayFrameSync);
|
||||
}
|
||||
|
||||
char * HandWriteView::value() {
|
||||
return txtinput;
|
||||
}
|
||||
|
Reference in New Issue
Block a user