diff options
Diffstat (limited to 'src/common/settings.h')
| -rw-r--r-- | src/common/settings.h | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/common/settings.h b/src/common/settings.h index 42f8b4a7d..313f1fa7f 100644 --- a/src/common/settings.h +++ b/src/common/settings.h | |||
| @@ -6,7 +6,6 @@ | |||
| 6 | 6 | ||
| 7 | #include <algorithm> | 7 | #include <algorithm> |
| 8 | #include <array> | 8 | #include <array> |
| 9 | #include <atomic> | ||
| 10 | #include <map> | 9 | #include <map> |
| 11 | #include <optional> | 10 | #include <optional> |
| 12 | #include <string> | 11 | #include <string> |
| @@ -525,7 +524,7 @@ struct Values { | |||
| 525 | Setting<NvdecEmulation> nvdec_emulation{NvdecEmulation::GPU, "nvdec_emulation"}; | 524 | Setting<NvdecEmulation> nvdec_emulation{NvdecEmulation::GPU, "nvdec_emulation"}; |
| 526 | Setting<bool> accelerate_astc{true, "accelerate_astc"}; | 525 | Setting<bool> accelerate_astc{true, "accelerate_astc"}; |
| 527 | Setting<bool> use_vsync{true, "use_vsync"}; | 526 | Setting<bool> use_vsync{true, "use_vsync"}; |
| 528 | BasicRangedSetting<u16> fps_cap{1000, 1, 1000, "fps_cap"}; | 527 | RangedSetting<u16> fps_cap{1000, 1, 1000, "fps_cap"}; |
| 529 | BasicSetting<bool> disable_fps_limit{false, "disable_fps_limit"}; | 528 | BasicSetting<bool> disable_fps_limit{false, "disable_fps_limit"}; |
| 530 | RangedSetting<ShaderBackend> shader_backend{ShaderBackend::GLASM, ShaderBackend::GLSL, | 529 | RangedSetting<ShaderBackend> shader_backend{ShaderBackend::GLASM, ShaderBackend::GLSL, |
| 531 | ShaderBackend::SPIRV, "shader_backend"}; | 530 | ShaderBackend::SPIRV, "shader_backend"}; |
| @@ -560,25 +559,19 @@ struct Values { | |||
| 560 | Setting<bool> enable_accurate_vibrations{false, "enable_accurate_vibrations"}; | 559 | Setting<bool> enable_accurate_vibrations{false, "enable_accurate_vibrations"}; |
| 561 | 560 | ||
| 562 | Setting<bool> motion_enabled{true, "motion_enabled"}; | 561 | Setting<bool> motion_enabled{true, "motion_enabled"}; |
| 563 | BasicSetting<std::string> motion_device{"engine:motion_emu,update_period:100,sensitivity:0.01", | ||
| 564 | "motion_device"}; | ||
| 565 | BasicSetting<std::string> udp_input_servers{"127.0.0.1:26760", "udp_input_servers"}; | 562 | BasicSetting<std::string> udp_input_servers{"127.0.0.1:26760", "udp_input_servers"}; |
| 563 | BasicSetting<bool> enable_udp_controller{false, "enable_udp_controller"}; | ||
| 566 | 564 | ||
| 567 | BasicSetting<bool> pause_tas_on_load{true, "pause_tas_on_load"}; | 565 | BasicSetting<bool> pause_tas_on_load{true, "pause_tas_on_load"}; |
| 568 | BasicSetting<bool> tas_enable{false, "tas_enable"}; | 566 | BasicSetting<bool> tas_enable{false, "tas_enable"}; |
| 569 | BasicSetting<bool> tas_loop{false, "tas_loop"}; | 567 | BasicSetting<bool> tas_loop{false, "tas_loop"}; |
| 570 | BasicSetting<bool> tas_swap_controllers{true, "tas_swap_controllers"}; | ||
| 571 | 568 | ||
| 572 | BasicSetting<bool> mouse_panning{false, "mouse_panning"}; | 569 | BasicSetting<bool> mouse_panning{false, "mouse_panning"}; |
| 573 | BasicRangedSetting<u8> mouse_panning_sensitivity{10, 1, 100, "mouse_panning_sensitivity"}; | 570 | BasicRangedSetting<u8> mouse_panning_sensitivity{10, 1, 100, "mouse_panning_sensitivity"}; |
| 574 | BasicSetting<bool> mouse_enabled{false, "mouse_enabled"}; | 571 | BasicSetting<bool> mouse_enabled{false, "mouse_enabled"}; |
| 575 | std::string mouse_device; | ||
| 576 | MouseButtonsRaw mouse_buttons; | ||
| 577 | 572 | ||
| 578 | BasicSetting<bool> emulate_analog_keyboard{false, "emulate_analog_keyboard"}; | 573 | BasicSetting<bool> emulate_analog_keyboard{false, "emulate_analog_keyboard"}; |
| 579 | BasicSetting<bool> keyboard_enabled{false, "keyboard_enabled"}; | 574 | BasicSetting<bool> keyboard_enabled{false, "keyboard_enabled"}; |
| 580 | KeyboardKeysRaw keyboard_keys; | ||
| 581 | KeyboardModsRaw keyboard_mods; | ||
| 582 | 575 | ||
| 583 | BasicSetting<bool> debug_pad_enabled{false, "debug_pad_enabled"}; | 576 | BasicSetting<bool> debug_pad_enabled{false, "debug_pad_enabled"}; |
| 584 | ButtonsRaw debug_pad_buttons; | 577 | ButtonsRaw debug_pad_buttons; |
| @@ -586,14 +579,11 @@ struct Values { | |||
| 586 | 579 | ||
| 587 | TouchscreenInput touchscreen; | 580 | TouchscreenInput touchscreen; |
| 588 | 581 | ||
| 589 | BasicSetting<bool> use_touch_from_button{false, "use_touch_from_button"}; | ||
| 590 | BasicSetting<std::string> touch_device{"min_x:100,min_y:50,max_x:1800,max_y:850", | 582 | BasicSetting<std::string> touch_device{"min_x:100,min_y:50,max_x:1800,max_y:850", |
| 591 | "touch_device"}; | 583 | "touch_device"}; |
| 592 | BasicSetting<int> touch_from_button_map_index{0, "touch_from_button_map"}; | 584 | BasicSetting<int> touch_from_button_map_index{0, "touch_from_button_map"}; |
| 593 | std::vector<TouchFromButtonMap> touch_from_button_maps; | 585 | std::vector<TouchFromButtonMap> touch_from_button_maps; |
| 594 | 586 | ||
| 595 | std::atomic_bool is_device_reload_pending{true}; | ||
| 596 | |||
| 597 | // Data Storage | 587 | // Data Storage |
| 598 | BasicSetting<bool> use_virtual_sd{true, "use_virtual_sd"}; | 588 | BasicSetting<bool> use_virtual_sd{true, "use_virtual_sd"}; |
| 599 | BasicSetting<bool> gamecard_inserted{false, "gamecard_inserted"}; | 589 | BasicSetting<bool> gamecard_inserted{false, "gamecard_inserted"}; |
| @@ -614,6 +604,7 @@ struct Values { | |||
| 614 | BasicSetting<bool> extended_logging{false, "extended_logging"}; | 604 | BasicSetting<bool> extended_logging{false, "extended_logging"}; |
| 615 | BasicSetting<bool> use_debug_asserts{false, "use_debug_asserts"}; | 605 | BasicSetting<bool> use_debug_asserts{false, "use_debug_asserts"}; |
| 616 | BasicSetting<bool> use_auto_stub{false, "use_auto_stub"}; | 606 | BasicSetting<bool> use_auto_stub{false, "use_auto_stub"}; |
| 607 | BasicSetting<bool> enable_all_controllers{false, "enable_all_controllers"}; | ||
| 617 | 608 | ||
| 618 | // Miscellaneous | 609 | // Miscellaneous |
| 619 | BasicSetting<std::string> log_filter{"*:Info", "log_filter"}; | 610 | BasicSetting<std::string> log_filter{"*:Info", "log_filter"}; |