Allow the DIR page to be exited properly using the inner knob
This commit is contained in:
parent
00d9abef42
commit
24b57ada09
2 changed files with 36 additions and 0 deletions
|
@ -105,3 +105,37 @@ void KLN89DirPage::EntPressed() {
|
||||||
_kln89->DtoInitiate(_id);
|
_kln89->DtoInitiate(_id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void KLN89DirPage::Knob2Left1() {
|
||||||
|
if(_kln89->_mode == KLN89_MODE_CRSR) {
|
||||||
|
if(_DToWpDispMode == 0) {
|
||||||
|
_DToWpDispMode = 1;
|
||||||
|
} else if(_DToWpDispMode == 1) {
|
||||||
|
// TODO
|
||||||
|
} else {
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
// If the cursor is not displayed, then we return to the page that was displayed prior to DTO being pressed,
|
||||||
|
// and pass the knob turn to that page, whether pulled out or not.
|
||||||
|
_kln89->_activePage = _kln89->_pages[_kln89->_curPage];
|
||||||
|
_kln89->_activePage->Knob2Left1();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void KLN89DirPage::Knob2Right1() {
|
||||||
|
if(_kln89->_mode == KLN89_MODE_CRSR) {
|
||||||
|
if(_DToWpDispMode == 0) {
|
||||||
|
_DToWpDispMode = 1;
|
||||||
|
} else if(_DToWpDispMode == 1) {
|
||||||
|
// TODO
|
||||||
|
} else {
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
// If the cursor is not displayed, then we return to the page that was displayed prior to DTO being pressed,
|
||||||
|
// and pass the knob turn to that page, whether pulled out or not.
|
||||||
|
_kln89->_activePage = _kln89->_pages[_kln89->_curPage];
|
||||||
|
_kln89->_activePage->Knob2Right1();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -38,6 +38,8 @@ public:
|
||||||
|
|
||||||
void ClrPressed();
|
void ClrPressed();
|
||||||
void EntPressed();
|
void EntPressed();
|
||||||
|
void Knob2Left1();
|
||||||
|
void Knob2Right1();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Waypoint display mode.
|
// Waypoint display mode.
|
||||||
|
|
Loading…
Add table
Reference in a new issue