From a76d6f63850747c8b1265d74f78cee77e190d9ac Mon Sep 17 00:00:00 2001 From: usagiyon <112408995+usagiyon@users.noreply.github.com> Date: Wed, 3 Apr 2024 14:51:05 +0300 Subject: [PATCH 1/2] Fixes for SPU-7 Radio source selector Fixed wrong command Id from SPU-7 Radio Source Select Rotary commands. --- .../Mi-8MTV2/Input/Mi-8MTV2/joystick/default.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/InputCommands/Mi-8MTV2/Input/Mi-8MTV2/joystick/default.lua b/InputCommands/Mi-8MTV2/Input/Mi-8MTV2/joystick/default.lua index 7b4e18e..26ad278 100644 --- a/InputCommands/Mi-8MTV2/Input/Mi-8MTV2/joystick/default.lua +++ b/InputCommands/Mi-8MTV2/Input/Mi-8MTV2/joystick/default.lua @@ -1031,12 +1031,12 @@ return { {cockpit_device_id = devices.SPU_7, down = device_commands.Button_7, up = device_commands.Button_7, value_down = 0, value_up = 1, name = _('SPU-7 Network Switch - 2 else 1 (2-way Switch)'), category = {_('SPU-7 Intercom Panels'), _('Custom')}}, {cockpit_device_id = devices.SPU_7, down = device_commands.Button_7, up = device_commands.Button_7, value_down = 1, value_up = 0, name = _('SPU-7 Network Switch - 1 else 2 (2-way Switch)'), category = {_('SPU-7 Intercom Panels'), _('Custom')}}, - {cockpit_device_id = devices.SPU_7, down = device_commands.Button_17, value_down = 0, name = _('SPU-7 Radio Source Select Rotary - R-863'), category = {_('SPU-7 Intercom Panels'), _('Custom')}}, - {cockpit_device_id = devices.SPU_7, down = device_commands.Button_17, value_down = 0.1, name = _('SPU-7 Radio Source Select Rotary - JADRO-1A'), category = {_('SPU-7 Intercom Panels'), _('Custom')}}, - {cockpit_device_id = devices.SPU_7, down = device_commands.Button_17, value_down = 0.2, name = _('SPU-7 Radio Source Select Rotary - R-828'), category = {_('SPU-7 Intercom Panels'), _('Custom')}}, - {cockpit_device_id = devices.SPU_7, down = device_commands.Button_17, value_down = 0.3, name = _('SPU-7 Radio Source Select Rotary - NF'), category = {_('SPU-7 Intercom Panels'), _('Custom')}}, - {cockpit_device_id = devices.SPU_7, down = device_commands.Button_17, value_down = 0.4, name = _('SPU-7 Radio Source Select Rotary - ARC-9'), category = {_('SPU-7 Intercom Panels'), _('Custom')}}, - {cockpit_device_id = devices.SPU_7, down = device_commands.Button_17, value_down = 0.5, name = _('SPU-7 Radio Source Select Rotary - ARC-UD'), category = {_('SPU-7 Intercom Panels'), _('Custom')}}, + {cockpit_device_id = devices.SPU_7, down = device_commands.Button_3, value_down = 0, name = _('SPU-7 Radio Source Select Rotary - R-863'), category = {_('SPU-7 Intercom Panels'), _('Custom')}}, + {cockpit_device_id = devices.SPU_7, down = device_commands.Button_3, value_down = 0.1, name = _('SPU-7 Radio Source Select Rotary - JADRO-1A'), category = {_('SPU-7 Intercom Panels'), _('Custom')}}, + {cockpit_device_id = devices.SPU_7, down = device_commands.Button_3, value_down = 0.2, name = _('SPU-7 Radio Source Select Rotary - R-828'), category = {_('SPU-7 Intercom Panels'), _('Custom')}}, + {cockpit_device_id = devices.SPU_7, down = device_commands.Button_3, value_down = 0.3, name = _('SPU-7 Radio Source Select Rotary - NF'), category = {_('SPU-7 Intercom Panels'), _('Custom')}}, + {cockpit_device_id = devices.SPU_7, down = device_commands.Button_3, value_down = 0.4, name = _('SPU-7 Radio Source Select Rotary - ARC-9'), category = {_('SPU-7 Intercom Panels'), _('Custom')}}, + {cockpit_device_id = devices.SPU_7, down = device_commands.Button_3, value_down = 0.5, name = _('SPU-7 Radio Source Select Rotary - ARC-UD'), category = {_('SPU-7 Intercom Panels'), _('Custom')}}, {cockpit_device_id = devices.SPU_7, down = device_commands.Button_6, up = device_commands.Button_6, value_down = 0, value_up = 1, name = _('Laryngophone Switch - OFF else ON (2-way Switch)'), category = {_('Right Triangular Panel'), _('Communications'), _('Custom')}}, {cockpit_device_id = devices.SPU_7, down = device_commands.Button_6, up = device_commands.Button_6, value_down = 1, value_up = 0, name = _('Laryngophone Switch - ON else OFF (2-way Switch)'), category = {_('Right Triangular Panel'), _('Communications'), _('Custom')}}, From 26b07107ffb8d4593ed017d5b26bae21cb0b4122 Mon Sep 17 00:00:00 2001 From: usagiyon <112408995+usagiyon@users.noreply.github.com> Date: Wed, 3 Apr 2024 14:53:38 +0300 Subject: [PATCH 2/2] SPU-7 Radio Source Select fixes for keyboard Corrected wrong action Id from radio source selector --- .../Mi-8MTV2/Input/Mi-8MTV2/keyboard/default.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/InputCommands/Mi-8MTV2/Input/Mi-8MTV2/keyboard/default.lua b/InputCommands/Mi-8MTV2/Input/Mi-8MTV2/keyboard/default.lua index 05d56dd..caf2841 100644 --- a/InputCommands/Mi-8MTV2/Input/Mi-8MTV2/keyboard/default.lua +++ b/InputCommands/Mi-8MTV2/Input/Mi-8MTV2/keyboard/default.lua @@ -1031,12 +1031,12 @@ return { {cockpit_device_id = devices.SPU_7, down = device_commands.Button_7, up = device_commands.Button_7, value_down = 0, value_up = 1, name = _('SPU-7 Network Switch - 2 else 1 (2-way Switch)'), category = {_('SPU-7 Intercom Panels'), _('Custom')}}, {cockpit_device_id = devices.SPU_7, down = device_commands.Button_7, up = device_commands.Button_7, value_down = 1, value_up = 0, name = _('SPU-7 Network Switch - 1 else 2 (2-way Switch)'), category = {_('SPU-7 Intercom Panels'), _('Custom')}}, - {cockpit_device_id = devices.SPU_7, down = device_commands.Button_17, value_down = 0, name = _('SPU-7 Radio Source Select Rotary - R-863'), category = {_('SPU-7 Intercom Panels'), _('Custom')}}, - {cockpit_device_id = devices.SPU_7, down = device_commands.Button_17, value_down = 0.1, name = _('SPU-7 Radio Source Select Rotary - JADRO-1A'), category = {_('SPU-7 Intercom Panels'), _('Custom')}}, - {cockpit_device_id = devices.SPU_7, down = device_commands.Button_17, value_down = 0.2, name = _('SPU-7 Radio Source Select Rotary - R-828'), category = {_('SPU-7 Intercom Panels'), _('Custom')}}, - {cockpit_device_id = devices.SPU_7, down = device_commands.Button_17, value_down = 0.3, name = _('SPU-7 Radio Source Select Rotary - NF'), category = {_('SPU-7 Intercom Panels'), _('Custom')}}, - {cockpit_device_id = devices.SPU_7, down = device_commands.Button_17, value_down = 0.4, name = _('SPU-7 Radio Source Select Rotary - ARC-9'), category = {_('SPU-7 Intercom Panels'), _('Custom')}}, - {cockpit_device_id = devices.SPU_7, down = device_commands.Button_17, value_down = 0.5, name = _('SPU-7 Radio Source Select Rotary - ARC-UD'), category = {_('SPU-7 Intercom Panels'), _('Custom')}}, + {cockpit_device_id = devices.SPU_7, down = device_commands.Button_3, value_down = 0, name = _('SPU-7 Radio Source Select Rotary - R-863'), category = {_('SPU-7 Intercom Panels'), _('Custom')}}, + {cockpit_device_id = devices.SPU_7, down = device_commands.Button_3, value_down = 0.1, name = _('SPU-7 Radio Source Select Rotary - JADRO-1A'), category = {_('SPU-7 Intercom Panels'), _('Custom')}}, + {cockpit_device_id = devices.SPU_7, down = device_commands.Button_3, value_down = 0.2, name = _('SPU-7 Radio Source Select Rotary - R-828'), category = {_('SPU-7 Intercom Panels'), _('Custom')}}, + {cockpit_device_id = devices.SPU_7, down = device_commands.Button_3, value_down = 0.3, name = _('SPU-7 Radio Source Select Rotary - NF'), category = {_('SPU-7 Intercom Panels'), _('Custom')}}, + {cockpit_device_id = devices.SPU_7, down = device_commands.Button_3, value_down = 0.4, name = _('SPU-7 Radio Source Select Rotary - ARC-9'), category = {_('SPU-7 Intercom Panels'), _('Custom')}}, + {cockpit_device_id = devices.SPU_7, down = device_commands.Button_3, value_down = 0.5, name = _('SPU-7 Radio Source Select Rotary - ARC-UD'), category = {_('SPU-7 Intercom Panels'), _('Custom')}}, {cockpit_device_id = devices.SPU_7, down = device_commands.Button_6, up = device_commands.Button_6, value_down = 0, value_up = 1, name = _('Laryngophone Switch - OFF else ON (2-way Switch)'), category = {_('Right Triangular Panel'), _('Communications'), _('Custom')}}, {cockpit_device_id = devices.SPU_7, down = device_commands.Button_6, up = device_commands.Button_6, value_down = 1, value_up = 0, name = _('Laryngophone Switch - ON else OFF (2-way Switch)'), category = {_('Right Triangular Panel'), _('Communications'), _('Custom')}},