mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-04 14:47:37 +03:00
Remove long-press setting, keep only skip improvements
This commit is contained in:
parent
3664355b1a
commit
9277a24194
@ -198,21 +198,7 @@ int CrossPointSettings::getRefreshFrequency() const {
|
||||
}
|
||||
}
|
||||
|
||||
unsigned long CrossPointSettings::getLongPressDurationMs() const {
|
||||
switch (longPressDuration) {
|
||||
case LONG_PRESS_DURATION::LP_1S:
|
||||
return 1UL * 1000;
|
||||
case LONG_PRESS_DURATION::LP_2S:
|
||||
default:
|
||||
return 2UL * 1000;
|
||||
case LONG_PRESS_DURATION::LP_3S:
|
||||
return 3UL * 1000;
|
||||
case LONG_PRESS_DURATION::LP_5S:
|
||||
return 5UL * 1000;
|
||||
case LONG_PRESS_DURATION::LP_10S:
|
||||
return 10UL * 1000;
|
||||
}
|
||||
}
|
||||
unsigned long CrossPointSettings::getLongPressDurationMs() const { return 1500UL; }
|
||||
|
||||
int CrossPointSettings::getReaderFontId() const {
|
||||
switch (fontFamily) {
|
||||
|
||||
@ -35,14 +35,13 @@ const SettingInfo readerSettings[readerSettingsCount] = {
|
||||
SettingInfo::Toggle("Extra Paragraph Spacing", &CrossPointSettings::extraParagraphSpacing),
|
||||
SettingInfo::Toggle("Text Anti-Aliasing", &CrossPointSettings::textAntiAliasing)};
|
||||
|
||||
constexpr int controlsSettingsCount = 5;
|
||||
constexpr int controlsSettingsCount = 4;
|
||||
const SettingInfo controlsSettings[controlsSettingsCount] = {
|
||||
SettingInfo::Enum("Front Button Layout", &CrossPointSettings::frontButtonLayout,
|
||||
{"Bck, Cnfrm, Lft, Rght", "Lft, Rght, Bck, Cnfrm", "Lft, Bck, Cnfrm, Rght"}),
|
||||
SettingInfo::Enum("Side Button Layout (reader)", &CrossPointSettings::sideButtonLayout,
|
||||
{"Prev, Next", "Next, Prev"}),
|
||||
SettingInfo::Toggle("Long-press Chapter Skip", &CrossPointSettings::longPressChapterSkip),
|
||||
SettingInfo::Enum("Long-press Duration", &CrossPointSettings::longPressDuration, {"1s", "2s", "3s", "5s", "10s"}),
|
||||
SettingInfo::Enum("Short Power Button Click", &CrossPointSettings::shortPwrBtn, {"Ignore", "Sleep", "Page Turn"})};
|
||||
|
||||
constexpr int systemSettingsCount = 5;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user