mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-12-01 15:23:47 +00:00
Compare commits
5 Commits
nightly-ta
...
v2.3.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c46cc431c9 | ||
|
|
a4d23768c1 | ||
|
|
344aa0c741 | ||
|
|
fd7637187a | ||
|
|
674b865ec0 |
2
.github/workflows/past_version.txt
vendored
2
.github/workflows/past_version.txt
vendored
@@ -1 +1 @@
|
||||
v2.1.0
|
||||
v2.2.0
|
||||
|
||||
2
.github/workflows/version.txt
vendored
2
.github/workflows/version.txt
vendored
@@ -1 +1 @@
|
||||
v2.2.0
|
||||
v2.3.1
|
||||
|
||||
@@ -285,9 +285,9 @@ bool StandaloneView::on_encoder(const EncoderEvent event) {
|
||||
|
||||
bool StandaloneView::on_touch(const TouchEvent event) {
|
||||
if (get_application_information()->header_version > 1) {
|
||||
get_application_information()->OnTouchEvent(event.point.x(), event.point.y(), (uint32_t)event.type);
|
||||
return get_application_information()->OnTouchEvent(event.point.x(), event.point.y(), (uint32_t)event.type);
|
||||
}
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
bool StandaloneView::on_keyboard(const KeyboardEvent event) {
|
||||
|
||||
@@ -148,7 +148,7 @@ struct standalone_application_information_t {
|
||||
void (*shutdown)();
|
||||
|
||||
void (*PaintViewMirror)();
|
||||
void (*OnTouchEvent)(int x, int y, uint32_t type);
|
||||
bool (*OnTouchEvent)(int x, int y, uint32_t type);
|
||||
void (*OnFocus)();
|
||||
bool (*OnKeyEvent)(uint8_t key);
|
||||
bool (*OnEncoder)(int32_t delta);
|
||||
|
||||
@@ -77,7 +77,7 @@ ui::Widget* touch_widget(ui::Widget* const w, ui::TouchEvent event) {
|
||||
|
||||
ui::Widget* captured_widget{nullptr};
|
||||
|
||||
void OnTouchEvent(int, int, uint32_t) {
|
||||
bool OnTouchEvent(int, int, uint32_t) {
|
||||
if (standaloneViewMirror) {
|
||||
_api->exit_app();
|
||||
/* //left here for example, but not used in digital rain
|
||||
@@ -96,6 +96,7 @@ void OnTouchEvent(int, int, uint32_t) {
|
||||
captured_widget->on_touch(event);
|
||||
*/
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void OnFocus() {
|
||||
|
||||
@@ -40,7 +40,7 @@ void shutdown();
|
||||
void OnFocus();
|
||||
bool OnKeyEvent(uint8_t);
|
||||
bool OnEncoder(int32_t);
|
||||
void OnTouchEvent(int, int, uint32_t);
|
||||
bool OnTouchEvent(int, int, uint32_t);
|
||||
bool OnKeyboad(uint8_t);
|
||||
void PaintViewMirror();
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#include "pacman.hpp"
|
||||
#include <memory>
|
||||
|
||||
void notouch(int, int, uint32_t) {
|
||||
bool notouch(int, int, uint32_t) {
|
||||
// do nothing
|
||||
}
|
||||
void nothing() {
|
||||
|
||||
Reference in New Issue
Block a user