mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-08 14:12:05 +00:00
trunk fmt
This commit is contained in:
parent
1426f93ade
commit
3eee1f3c56
@ -4,9 +4,8 @@
|
||||
TrackballInterruptBase::TrackballInterruptBase(const char *name) : concurrency::OSThread(name), _originName(name) {}
|
||||
|
||||
void TrackballInterruptBase::init(uint8_t pinDown, uint8_t pinUp, uint8_t pinLeft, uint8_t pinRight, uint8_t pinPress,
|
||||
uint8_t pinMenuParam,
|
||||
char eventDown, char eventUp, char eventLeft, char eventRight, char eventPressed,
|
||||
char eventmenu, void (*onIntDown)(), void (*onIntUp)(), void (*onIntLeft)(),
|
||||
uint8_t pinMenuParam, char eventDown, char eventUp, char eventLeft, char eventRight,
|
||||
char eventPressed, char eventmenu, void (*onIntDown)(), void (*onIntUp)(), void (*onIntLeft)(),
|
||||
void (*onIntRight)(), void (*onIntPress)(), void (*onMenuPress)())
|
||||
{
|
||||
this->_pinDown = pinDown;
|
||||
|
@ -26,15 +26,13 @@ void TrackballInterruptImpl1::init()
|
||||
char eventLeft = static_cast<char>(meshtastic_ModuleConfig_CannedMessageConfig_InputEventChar_LEFT);
|
||||
char eventRight = static_cast<char>(meshtastic_ModuleConfig_CannedMessageConfig_InputEventChar_RIGHT);
|
||||
char eventPressed = static_cast<char>(meshtastic_ModuleConfig_CannedMessageConfig_InputEventChar_SELECT);
|
||||
char eventcancel =
|
||||
static_cast<char>(meshtastic_ModuleConfig_CannedMessageConfig_InputEventChar_CANCEL);
|
||||
char eventcancel = static_cast<char>(meshtastic_ModuleConfig_CannedMessageConfig_InputEventChar_CANCEL);
|
||||
|
||||
TrackballInterruptBase::init(pinDown, pinUp, pinLeft, pinRight, pinPress, pinmenu,
|
||||
eventDown, eventUp, eventLeft, eventRight, eventPressed,
|
||||
eventcancel,
|
||||
TrackballInterruptImpl1::handleIntDown, TrackballInterruptImpl1::handleIntUp,
|
||||
TrackballInterruptImpl1::handleIntLeft, TrackballInterruptImpl1::handleIntRight,
|
||||
TrackballInterruptImpl1::handleIntPressed, TrackballInterruptImpl1::handleMenuPressed);
|
||||
TrackballInterruptBase::init(pinDown, pinUp, pinLeft, pinRight, pinPress, pinmenu, eventDown, eventUp, eventLeft, eventRight,
|
||||
eventPressed, eventcancel, TrackballInterruptImpl1::handleIntDown,
|
||||
TrackballInterruptImpl1::handleIntUp, TrackballInterruptImpl1::handleIntLeft,
|
||||
TrackballInterruptImpl1::handleIntRight, TrackballInterruptImpl1::handleIntPressed,
|
||||
TrackballInterruptImpl1::handleMenuPressed);
|
||||
inputBroker->registerSource(this);
|
||||
#endif
|
||||
}
|
||||
@ -64,7 +62,6 @@ void TrackballInterruptImpl1::handleMenuPressed()
|
||||
{
|
||||
bool activateMenuAction = false;
|
||||
|
||||
|
||||
if (cannedMessageModule && cannedMessageModule->isUIVisibleAndInterceptingInput()) {
|
||||
activateMenuAction = true;
|
||||
}
|
||||
|
@ -92,10 +92,7 @@ class CannedMessageModule : public SinglePortModule, public Observable<const UIF
|
||||
return false;
|
||||
}
|
||||
}
|
||||
bool isUIVisibleAndInterceptingInput()
|
||||
{
|
||||
return this->interceptingKeyboardInput();
|
||||
}
|
||||
bool isUIVisibleAndInterceptingInput() { return this->interceptingKeyboardInput(); }
|
||||
|
||||
protected:
|
||||
virtual int32_t runOnce() override;
|
||||
|
Loading…
Reference in New Issue
Block a user