mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-11 08:00:31 -04:00
Default null for on touch release and press
Fixes https://github.com/eried/portapack-mayhem/issues/194
This commit is contained in:
parent
4f2b306784
commit
99af859e13
1 changed files with 2 additions and 2 deletions
|
@ -378,8 +378,8 @@ private:
|
||||||
class Button : public Widget {
|
class Button : public Widget {
|
||||||
public:
|
public:
|
||||||
std::function<void(Button&)> on_select { };
|
std::function<void(Button&)> on_select { };
|
||||||
std::function<void(Button&)> on_touch_release { }; // Executed when releasing touch, after on_select.
|
std::function<void(Button&)> on_touch_release { nullptr }; // Executed when releasing touch, after on_select.
|
||||||
std::function<void(Button&)> on_touch_press { }; // Executed when touching, before on_select.
|
std::function<void(Button&)> on_touch_press { nullptr }; // Executed when touching, before on_select.
|
||||||
std::function<bool(Button&, KeyEvent)> on_dir { };
|
std::function<bool(Button&, KeyEvent)> on_dir { };
|
||||||
std::function<void(Button&)> on_highlight { };
|
std::function<void(Button&)> on_highlight { };
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue