18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-19 02:56:01 +01:00

Merge pull request #280 from MaSzyna-EU07/feat/radio-fuse

Radio fuse: a cut-off in the radio's power supply (eu07/maszyna#438)
This commit is contained in:
2026-11-09 12:53:14 +00:00
committed by GitHub
16 changed files with 198 additions and 27 deletions

View File

@@ -158,6 +158,9 @@ commanddescription_sequence Commands_descriptions = {
{"radiovolumeincrease", command_target::vehicle, command_mode::oneoff},
{"radiovolumedecrease", command_target::vehicle, command_mode::oneoff},
{"radiovolumeset", command_target::vehicle, command_mode::oneoff},
{"radiofusetoggle", command_target::vehicle, command_mode::oneoff},
{"radiofuseenable", command_target::vehicle, command_mode::oneoff},
{"radiofusedisable", command_target::vehicle, command_mode::oneoff},
{"cabchangeforward", command_target::vehicle, command_mode::oneoff},
{"cabchangebackward", command_target::vehicle, command_mode::oneoff},
{"modernlightdimmerdecrease", command_target::vehicle, command_mode::oneoff},
@@ -550,6 +553,9 @@ std::unordered_map<std::string, user_command> const commandMap = {
{"radiovolumeincrease", user_command::radiovolumeincrease},
{"radiovolumedecrease", user_command::radiovolumedecrease},
{"radiovolumeset", user_command::radiovolumeset},
{"radiofusetoggle", user_command::radiofusetoggle},
{"radiofuseenable", user_command::radiofuseenable},
{"radiofusedisable", user_command::radiofusedisable},
{"cabchangeforward", user_command::cabchangeforward},
{"cabchangebackward", user_command::cabchangebackward},
{"viewturn", user_command::viewturn},

View File

@@ -151,6 +151,9 @@ enum class user_command
radiovolumeincrease,
radiovolumedecrease,
radiovolumeset,
radiofusetoggle,
radiofuseenable,
radiofusedisable,
cabchangeforward,
cabchangebackward,

View File

@@ -160,6 +160,9 @@ driverkeyboard_input::default_bindings() {
// radiovolumeincrease,
// radiovolumedecrease,
// radiovolumeset,
// radiofusetoggle,
// radiofuseenable,
// radiofusedisable,
{ cabchangeforward, {GLFW_KEY_HOME, ""} },
{ cabchangebackward, {GLFW_KEY_END, ""} },
// viewturn,

View File

@@ -801,6 +801,15 @@ drivermouse_input::default_bindings() {
{ "radiooff_sw:", {
radiodisable,
none } },
{ "radiofuse_sw:", {
radiofusetoggle,
none } },
{ "radiofuseon_sw:", {
radiofuseenable,
none } },
{ "radiofuseoff_sw:", {
radiofusedisable,
none } },
{ "radiochannel_sw:", {
radiochannelincrease,
radiochanneldecrease } },