14 : commandController(commandController_)
15 , pauseSetting(commandController,
"pause",
16 "pauses the emulation", false,
Setting::DONT_SAVE)
17 , powerSetting(commandController,
"power",
18 "turn power on/off", false,
Setting::DONT_SAVE)
19 , autoSaveSetting(commandController,
"save_settings_on_exit",
20 "automatically save settings when openMSX exits", true)
21 , umrCallBackSetting(commandController,
"umr_callback",
22 "Tcl proc to call when an UMR is detected", {})
23 , invalidPsgDirectionsSetting(commandController,
24 "invalid_psg_directions_callback",
25 "Tcl proc called when the MSX program has set invalid PSG port directions",
26 "default_invalid_psg_directions_callback")
27 , invalidPpiModeSetting(commandController,
28 "invalid_ppi_mode_callback",
29 "Tcl proc called when the MSX program has set an invalid PPI mode",
30 "default_invalid_ppi_mode_callback")
31 , resampleSetting(commandController,
"resampler",
"Resample algorithm",
46 , speedManager(commandController)
47 , throttleManager(commandController)
51 return std::make_unique<IntegerSetting>(
53 tmpStrCat(
"joystick", i + 1,
"_deadzone"),
54 "size (as a percentage) of the dead center zone",
57 getPowerSetting().attach(*
this);
70 if (&
setting == &getPowerSetting()) {
75 getPauseSetting().setBoolean(
false);
bool getBoolean() const noexcept
SettingsConfig & getSettingsConfig()
GlobalSettings(GlobalCommandController &commandController)
BooleanSetting & getPowerSetting()
void setSaveSettings(bool save)
void detach(Observer< T > &observer)
This file implemented 3 utility functions:
constexpr auto transform(Range &&range, UnaryOp op)
auto to_vector(Range &&range) -> std::vector< detail::ToVectorType< T, decltype(std::begin(range))> >
TemporaryString tmpStrCat(Ts &&... ts)
constexpr auto xrange(T e)