From e5dc911e21f87132745624b9ff0c7d1decac3c83 Mon Sep 17 00:00:00 2001 From: Munkwolf Date: Fri, 27 Jan 2023 17:58:37 -0700 Subject: [PATCH] AH-64D: Fix for CPG sensor select switch commands. --- InputCommands/AH-64D/Input/AH-64D_CPG/joystick/default.lua | 4 ++-- InputCommands/AH-64D/Input/AH-64D_CPG/keyboard/default.lua | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/InputCommands/AH-64D/Input/AH-64D_CPG/joystick/default.lua b/InputCommands/AH-64D/Input/AH-64D_CPG/joystick/default.lua index c9dbc14..6e6c091 100644 --- a/InputCommands/AH-64D/Input/AH-64D_CPG/joystick/default.lua +++ b/InputCommands/AH-64D/Input/AH-64D_CPG/joystick/default.lua @@ -258,8 +258,8 @@ return { -- Left Handgrip (LHG) - {cockpit_device_id = devices.TEDAC_INPUT, down = tedac_commands.LHG_TADS_SENSOR_SELECT_SW_FLIR, up = tedac_commands.LHG_TADS_SENSOR_SELECT_SW_TV, value_down = 1, value_up = 1, name = _('LHG TADS Sensor Select Switch - FLIR else TV (3-way Switch Down)'), category = {_('TEDAC'), _('Left Handgrip'), _('Custom')}}, - {cockpit_device_id = devices.TEDAC_INPUT, down = tedac_commands.LHG_TADS_SENSOR_SELECT_SW_DVO, up = tedac_commands.LHG_TADS_SENSOR_SELECT_SW_TV, value_down = 1, value_up = 1, name = _('LHG TADS Sensor Select Switch - DVO else TV (3-way Switch Up)'), category = {_('TEDAC'), _('Left Handgrip'), _('Custom')}}, + {cockpit_device_id = devices.TEDAC_INPUT, down = tedac_commands.LHG_TADS_SENSOR_SELECT_SW_FLIR, up = tedac_commands.LHG_TADS_SENSOR_SELECT_SW_TV, value_down = 1, value_up = 0, name = _('LHG TADS Sensor Select Switch - FLIR else TV (3-way Switch Up)'), category = {_('TEDAC'), _('Left Handgrip'), _('Custom')}}, + {cockpit_device_id = devices.TEDAC_INPUT, down = tedac_commands.LHG_TADS_SENSOR_SELECT_SW_DVO, up = tedac_commands.LHG_TADS_SENSOR_SELECT_SW_TV, value_down = -1, value_up = 0, name = _('LHG TADS Sensor Select Switch - DVO else TV (3-way Switch Down)'), category = {_('TEDAC'), _('Left Handgrip'), _('Custom')}}, -- Right Handgrip (RHG) diff --git a/InputCommands/AH-64D/Input/AH-64D_CPG/keyboard/default.lua b/InputCommands/AH-64D/Input/AH-64D_CPG/keyboard/default.lua index c9dbc14..6e6c091 100644 --- a/InputCommands/AH-64D/Input/AH-64D_CPG/keyboard/default.lua +++ b/InputCommands/AH-64D/Input/AH-64D_CPG/keyboard/default.lua @@ -258,8 +258,8 @@ return { -- Left Handgrip (LHG) - {cockpit_device_id = devices.TEDAC_INPUT, down = tedac_commands.LHG_TADS_SENSOR_SELECT_SW_FLIR, up = tedac_commands.LHG_TADS_SENSOR_SELECT_SW_TV, value_down = 1, value_up = 1, name = _('LHG TADS Sensor Select Switch - FLIR else TV (3-way Switch Down)'), category = {_('TEDAC'), _('Left Handgrip'), _('Custom')}}, - {cockpit_device_id = devices.TEDAC_INPUT, down = tedac_commands.LHG_TADS_SENSOR_SELECT_SW_DVO, up = tedac_commands.LHG_TADS_SENSOR_SELECT_SW_TV, value_down = 1, value_up = 1, name = _('LHG TADS Sensor Select Switch - DVO else TV (3-way Switch Up)'), category = {_('TEDAC'), _('Left Handgrip'), _('Custom')}}, + {cockpit_device_id = devices.TEDAC_INPUT, down = tedac_commands.LHG_TADS_SENSOR_SELECT_SW_FLIR, up = tedac_commands.LHG_TADS_SENSOR_SELECT_SW_TV, value_down = 1, value_up = 0, name = _('LHG TADS Sensor Select Switch - FLIR else TV (3-way Switch Up)'), category = {_('TEDAC'), _('Left Handgrip'), _('Custom')}}, + {cockpit_device_id = devices.TEDAC_INPUT, down = tedac_commands.LHG_TADS_SENSOR_SELECT_SW_DVO, up = tedac_commands.LHG_TADS_SENSOR_SELECT_SW_TV, value_down = -1, value_up = 0, name = _('LHG TADS Sensor Select Switch - DVO else TV (3-way Switch Down)'), category = {_('TEDAC'), _('Left Handgrip'), _('Custom')}}, -- Right Handgrip (RHG)