mirror of
https://github.com/rock88/moonlight-nx
synced 2024-11-10 06:14:15 +00:00
Remove swap_ab_xy option from settings
This commit is contained in:
parent
ae57f4c07e
commit
baa847397b
3 changed files with 0 additions and 20 deletions
|
@ -102,10 +102,6 @@ void Settings::load() {
|
|||
}
|
||||
}
|
||||
|
||||
if (json_t* swap_ab_xy = json_object_get(settings, "swap_ab_xy")) {
|
||||
m_swap_ab_xy = json_typeof(swap_ab_xy) == JSON_TRUE;
|
||||
}
|
||||
|
||||
if (json_t* click_by_tap = json_object_get(settings, "click_by_tap")) {
|
||||
m_click_by_tap = json_typeof(click_by_tap) == JSON_TRUE;
|
||||
}
|
||||
|
@ -150,7 +146,6 @@ void Settings::save() {
|
|||
json_object_set(settings, "video_codec", json_integer(m_video_codec));
|
||||
json_object_set(settings, "bitrate", json_integer(m_bitrate));
|
||||
json_object_set(settings, "decoder_threads", json_integer(m_decoder_threads));
|
||||
json_object_set(settings, "swap_ab_xy", m_swap_ab_xy ? json_true() : json_false());
|
||||
json_object_set(settings, "click_by_tap", m_click_by_tap ? json_true() : json_false());
|
||||
json_object_set(settings, "sops", m_sops ? json_true() : json_false());
|
||||
json_object_set(settings, "play_audio", m_play_audio ? json_true() : json_false());
|
||||
|
|
|
@ -72,14 +72,6 @@ public:
|
|||
m_bitrate = bitrate;
|
||||
}
|
||||
|
||||
bool swap_ab_xy() const {
|
||||
return m_swap_ab_xy;
|
||||
}
|
||||
|
||||
void set_swap_ab_xy(bool swap_ab_xy) {
|
||||
m_swap_ab_xy = swap_ab_xy;
|
||||
}
|
||||
|
||||
bool click_by_tap() const {
|
||||
return m_click_by_tap;
|
||||
}
|
||||
|
@ -137,7 +129,6 @@ private:
|
|||
int m_fps = 60;
|
||||
VideoCodec m_video_codec = H264;
|
||||
int m_bitrate = 10000;
|
||||
bool m_swap_ab_xy = true;
|
||||
bool m_click_by_tap = false;
|
||||
int m_decoder_threads = 4;
|
||||
bool m_sops = true;
|
||||
|
|
|
@ -107,12 +107,6 @@ SettingsWindow::SettingsWindow(nanogui::Widget* parent): ContentWindow(parent, "
|
|||
});
|
||||
|
||||
left_container->add<Label>("Input Settings");
|
||||
auto swap_input = left_container->add<CheckBox>("Swap A/B and X/Y");
|
||||
swap_input->set_checked(Settings::settings()->swap_ab_xy());
|
||||
swap_input->set_callback([](auto value) {
|
||||
Settings::settings()->set_swap_ab_xy(value);
|
||||
});
|
||||
|
||||
auto click_by_tap = left_container->add<CheckBox>("Mouse click by tap on screen");
|
||||
click_by_tap->set_checked(Settings::settings()->click_by_tap());
|
||||
click_by_tap->set_callback([](auto value) {
|
||||
|
|
Loading…
Reference in a new issue