Advertisement
Guest User

Untitled

a guest
Oct 31st, 2015
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 60.92 KB | None | 0 0
  1. local cockpit = folder.."../../../Cockpit/Scripts/"
  2. dofile(cockpit.."devices.lua")
  3. dofile(cockpit.."command_defs.lua")
  4.  
  5. return {
  6.  
  7. forceFeedback = {
  8. trimmer = 1.0,
  9. shake = 0.5,
  10. swapAxes = false,
  11. },
  12.  
  13. keyCommands = {
  14.  
  15. --Custom
  16. {down = device_commands.Button_7, up = device_commands.Button_7, cockpit_device_id  = devices.FRONT_SWITCH_BOX, value_down = 1.0, value_up = 0.0, name = 'Alternate Gun safety switch GUN CAMERA SIGHT', category = 'Front Switch Box'},
  17. {down = device_commands.Button_2, up = device_commands.Button_2, cockpit_device_id  = devices.FRONT_SWITCH_BOX, value_down = 0.3, value_up = 0.0, name = 'Alternate Ignition switch BOTH', category = 'Front Switch Box'},
  18. {down = device_commands.Button_11, up = device_commands.Button_11, cockpit_device_id  = devices.FRONT_SWITCH_BOX, value_down = 0.1, value_up = 0.0, name = 'Alternate Bomb-rocket selector switch TRAIN', category = 'Front Switch Box'},
  19. {down = device_commands.Button_11, up = device_commands.Button_11, cockpit_device_id  = devices.FRONT_SWITCH_BOX, value_down = 0.3, value_up = 0.0, name = 'Alternate Bomb-rocket selector switch ROCKETS', category = 'Front Switch Box'},
  20.  
  21. {down = device_commands.Button_11, up = device_commands.Button_11, cockpit_device_id  = devices.ENGINE_SYSTEM, value_down = 0.0, value_up = 0.1, name = 'Alternate Mixture IDLE CUT OFF', category = 'Flight Control'},
  22. {down = device_commands.Button_11, up = device_commands.Button_11, cockpit_device_id  = devices.ENGINE_SYSTEM, value_down = 0.2, value_up = 0.1, name = 'Alternate Mixture EMERGENCY FULL RICH', category = 'Flight Control'},
  23.  
  24. {down = device_commands.Button_8, up = device_commands.Button_8, cockpit_device_id  = devices.K14_GUNSIGHT, value_down = 1.0, value_up = 1.0, name = 'Alternate Gunsight gyromotor power', category = 'K-14 gunsight'},
  25. {down = device_commands.Button_3, up = device_commands.Button_3, cockpit_device_id  = devices.K14_GUNSIGHT, value_down = 0.0, value_up = 0.1, name = 'Alternate Gunsight mode FIXED', category = 'K-14 gunsight'},
  26. {down = device_commands.Button_3, up = device_commands.Button_3, cockpit_device_id  = devices.K14_GUNSIGHT, value_down = 0.2, value_up = 0.1, name = 'Alternate Gunsight mode GYRO', category = 'K-14 gunsight'},
  27.  
  28. {down = device_commands.Button_6, up = device_commands.Button_6, cockpit_device_id  = devices.ENGINE_CONTROL_PANEL, value_down = 1.0, value_up = 1.0, name = 'Alternate Fuel Booster', category = 'Engine Control Panel'},
  29.  
  30. {down = device_commands.Button_3, up = device_commands.Button_3, cockpit_device_id  = devices.FUEL_SYSTEM, value_down = 1.0, value_up = 1.0, name = 'Alternate Fuel shut-off valve', category = 'Fuel Control'},
  31.  
  32.  
  33. -- Temporary
  34. {down = iCommandEnginesStart, name = _('Start Procedure'), category = _('Cheat')},
  35. {down = iCommandEnginesStop, name = _('Stop Procedure'), category = _('Cheat')},
  36.  
  37. -- Gameplay
  38. {down = iCommandActivePauseOnOff, name = _('Pause Active'), category = _('General')},
  39. {down = iCommandQuit, name = _('Exit mission'), category = _('General')},
  40. {down = iCommandViewBriefing, name = _('Briefing window'), category = _('General')},
  41. {down = iCommandPlaneJump, name = _('Jump into selected aircraft'), category = _('General')},
  42. {down = iCommandBrakeGo, name = _('Pause'), category = _('General')},
  43. {down = iCommandAccelerate, name = _('Time accelerate'), category = _('General')},
  44. {down = iCommandDecelerate, name = _('Time decelerate'), category = _('General')},
  45. {down = iCommandNoAcceleration, name = _('Time normal'), category = _('General')},
  46. {down = iCommandScoresWindowToggle, name = _('Score window'), category = _('General')},
  47. {down = iCommandDebriefing, name = _('Show debriefing window'), category = _('General')},
  48. {down = iCommandChat, name = _('Multiplayer chat - mode All'), category = _('General')},
  49. {down = iCommandFriendlyChat, name = _('Multiplayer chat - mode Allies'), category = _('General')},
  50. {down = iCommandRecoverHuman, name = _('Get new plane - respawn'), category = _('General')},
  51. {down = iCommandScreenShot, name = _('Screenshot'), category = _('General')},
  52. {down = iCommandTrkEsc, name = _('Playback track cancel'), category = _('General')},
  53. {down = iCommandInfoOnOff, name = _('Info bar view toggle'), category = _('General')},
  54. {down = iCommandOneFrame, name = _('One frame mode'), category = _('General')},
  55. {down = iCommandGraphicsFrameRate, name = _('Frame rate counter - Service info'), category = _('General')},
  56. {down = iCommandViewCoordinatesInLinearUnits, name = _('Info bar coordinate units toggle'), category = _('General')},
  57. {down = iCommandCockpitClickModeOnOff, name = _('Clickable mouse cockpit mode On/Off'), category = _('General')},
  58. {down = iCommandPlane_ShowControls, name = _('Show controls indicator') , category = _('General')},
  59. {down = iCommandCockpitShowPilotOnOff, name = _('Show pilot body'), category = _('General')},
  60. {down = iCommandMissionResourcesManagement, name = _('Rearming and Refueling Window'), category = _('General')},
  61.  
  62.  
  63. -- Communications
  64. {down = iCommandPlaneDoAndHome, name = _('COMM Dispatch wingmans - complete mission and RTB (easy communication only)'), category = _('Communications')},
  65. {down = iCommandPlaneDoAndBack, name = _('COMM Dispatch wingmans - complete mission and rejoin (easy communication only)'), category = _('Communications')},
  66. {down = iCommandPlaneFormation, name = _('COMM Toggle formation (easy communication only)'), category = _('Communications')},
  67. {down = iCommandPlaneJoinUp, name = _('COMM Join up formation (easy communication only)'), category = _('Communications')},
  68. {down = iCommandPlaneAttackMyTarget, name = _('COMM Attack my target (easy communication only)'), category = _('Communications')},
  69. {down = iCommandPlaneCoverMySix, name = _('COMM Cover me (easy communication only)'), category = _('Communications')},
  70. {down = iCommandAWACSHomeBearing, name = _('COMM Ask AWACS home airbase (easy communication only)'), category = _('Communications')},
  71. {down = iCommandPlane_EngageGroundTargets, name = _('COMM Attack Ground Targets (easy communication only)'), category = _('Communications')},
  72. {down = iCommandPlane_EngageAirDefenses, name = _('COMM Attack Air Defenses (easy communication only)'), category = _('Communications')},
  73. {down = iCommandToggleCommandMenu, name = _('COMM Communication menu'), category = _('Communications')},
  74. {down = ICommandSwitchDialog, name = _('COMM Switch dialog'), category = _('Communications')},
  75. {down = ICommandSwitchToCommonDialog, name = _('COMM Switch to main menu'), category = _('Communications')},
  76. {down = iCommandPlane_P_51_PTT_on, up = iCommandPlane_P_51_PTT_off, name = _('COMM Push to talk'), category = _('Communications')},
  77.  
  78. -- View                                                    
  79. {combos = {{key = 'JOY_BTN_POV1_L'}}, pressed = iCommandViewLeftSlow, up = iCommandViewStopSlow, name = _('View Left slow'), category = _('View')},
  80. {combos = {{key = 'JOY_BTN_POV1_R'}}, pressed = iCommandViewRightSlow, up = iCommandViewStopSlow, name = _('View Right slow'), category = _('View')},
  81. {combos = {{key = 'JOY_BTN_POV1_U'}}, pressed = iCommandViewUpSlow, up = iCommandViewStopSlow, name = _('View Up slow'), category = _('View')},
  82. {combos = {{key = 'JOY_BTN_POV1_D'}}, pressed = iCommandViewDownSlow, up = iCommandViewStopSlow, name = _('View Down slow'), category = _('View')},
  83. {combos = {{key = 'JOY_BTN_POV1_UR'}}, pressed = iCommandViewUpRightSlow, up = iCommandViewStopSlow, name = _('View Up Right slow'), category = _('View')},
  84. {combos = {{key = 'JOY_BTN_POV1_DR'}}, pressed = iCommandViewDownRightSlow, up = iCommandViewStopSlow, name = _('View Down Right slow'), category = _('View')},
  85. {combos = {{key = 'JOY_BTN_POV1_DL'}}, pressed = iCommandViewDownLeftSlow, up = iCommandViewStopSlow, name = _('View Down Left slow'), category = _('View')},
  86. {combos = {{key = 'JOY_BTN_POV1_UL'}}, pressed = iCommandViewUpLeftSlow, up = iCommandViewStopSlow, name = _('View Up Left slow'), category = _('View')},
  87. {pressed = iCommandViewCenter, name = _('View Center'), category = _('View')},
  88.  
  89. {pressed = iCommandViewForwardSlow, up = iCommandViewForwardSlowStop, name = _('Zoom in slow'), category = _('View')},
  90. {pressed = iCommandViewBackSlow, up = iCommandViewBackSlowStop, name = _('Zoom out slow'), category = _('View')},
  91. {down = iCommandViewAngleDefault, name = _('Zoom normal'), category = _('View')},
  92. {pressed = iCommandViewExternalZoomIn, up = iCommandViewExternalZoomInStop, name = _('Zoom external in'), category = _('View')},
  93. {pressed = iCommandViewExternalZoomOut, up = iCommandViewExternalZoomOutStop, name = _('Zoom external out'), category = _('View')},
  94. {down = iCommandViewExternalZoomDefault, name = _('Zoom external normal'), category = _('View')},
  95. {down = iCommandViewSpeedUp, name = _('F11 camera moving forward'), category = _('View')},
  96. {down = iCommandViewSlowDown, name = _('F11 camera moving backward'), category = _('View')},
  97.  
  98.  
  99. {down = iCommandViewCockpit, name = _('F1 Cockpit view'), category = _('View')},
  100. {down = iCommandNaturalViewCockpitIn, name = _('F1 Natural head movement view'), category = _('View')},
  101. {down = iCommandViewHUDOnlyOnOff, name = _('F1 HUD only view switch'), category = _('View')},
  102. {down = iCommandViewAir, name = _('F2 Aircraft view'), category = _('View')},
  103. {down = iCommandViewMe, name = _('F2 View own aircraft'), category = _('View')},
  104. {down = iCommandViewFromTo, name = _('F2 Toggle camera position'), category = _('View')},
  105. {down = iCommandViewLocal, name = _('F2 Toggle local camera control'), category = _('View')},
  106. {down = iCommandViewTower, name = _('F3 Fly-By view'), category = _('View')},
  107. {down = iCommandViewTowerJump, name = _('F3 Fly-By jump view'), category = _('View')},
  108. {down = iCommandViewChaseArcade, name = _('F4 Arcade View'), category = _('View')},
  109. {down = iCommandViewRear, name = _('F4 Look back view'), category = _('View')},
  110. {down = iCommandViewChase, name = _('F4 Chase view'), category = _('View')},
  111. {down = iCommandViewFight, name = _('F5 nearest AC view'), category = _('View')},
  112. {down = iCommandViewFightGround, name = _('F5 Ground hostile view'), category = _('View')},
  113. {down = iCommandViewWeapons, name = _('F6 Released weapon view'), category = _('View')},
  114. {down = iCommandViewWeaponAndTarget, name = _('F6 Weapon to target view'), category = _('View')},
  115. {down = iCommandViewGround, name = _('F7 Ground unit view'), category = _('View')},
  116. {down = iCommandViewJFO, name = _('F7 Ground JFO/JTAC view'), category = _('View')},
  117.  
  118. {down = iCommandViewNavy, name = _('F9 Ship view'), category = _('View')},
  119. {down = iCommandViewLndgOfficer, name = _('F9 Landing signal officer view'), category = _('View')},
  120. {down = iCommandViewAWACS, name = _('F10 Theater map view'), category = _('View')},
  121. {down = iCommandViewAWACSJump, name = _('F10 Jump to theater map view over current point'), category = _('View')},
  122. {down = iCommandViewFree, name = _('F11 Airport free camera'), category = _('View')},
  123. {down = iCommandViewFreeJump, name = _('F11 Jump to free camera'), category = _('View')},
  124. {down = iCommandViewStatic, name = _('F12 Static object view'), category = _('View')},
  125. {down = iCommandViewMirage, name = _('F12 Civil traffic view'), category = _('View')},
  126. {down = iCommandViewLocomotivesToggle, name = _('F12 Trains/cars toggle'), category = _('View')},
  127. {down = iCommandViewPitHeadOnOff, name = _('F1 Head shift movement on / off'), category = _('View')},
  128.  
  129. {down = iCommandViewFastKeyboard, name = _('Camera view keyboard rate fast'), category = _('View')},
  130. {down = iCommandViewSlowKeyboard, name = _('Camera view keyboard rate slow'), category = _('View')},
  131. {down = iCommandViewNormalKeyboard, name = _('Camera view keyboard rate normal'), category = _('View')},
  132. {down = iCommandViewFastMouse, name = _('Camera view mouse rate fast'), category = _('View')},
  133. {down = iCommandViewSlowMouse, name = _('Camera view mouse rate slow'), category = _('View')},
  134. {down = iCommandViewNormalMouse, name = _('Camera view mouse rate normal'), category = _('View')},
  135.  
  136.  
  137. -- Cockpit view
  138. {down = iCommandViewTempCockpitOn, up = iCommandViewTempCockpitOff, name = _('Cockpit panel view in'), category = _('View Cockpit')},
  139. {down = iCommandViewTempCockpitToggle, name = _('Cockpit panel view toggle'), category = _('View Cockpit')},
  140. {down = iCommandViewSaveAngles, name = _('Save Cockpit Angles'), category = _('View Cockpit')}, -- Save current cockpit camera angles for fast numpad jumps  
  141. {pressed = iCommandViewUp, up = iCommandViewStop, name = _('View up'), category = _('View Cockpit')},
  142. {pressed = iCommandViewDown, up = iCommandViewStop, name = _('View down'), category = _('View Cockpit')},
  143. {pressed = iCommandViewLeft, up = iCommandViewStop, name = _('View left'), category = _('View Cockpit')},
  144. {pressed = iCommandViewRight, up = iCommandViewStop, name = _('View right'), category = _('View Cockpit')},
  145. {pressed = iCommandViewUpRight, up = iCommandViewStop, name = _('View up right'), category = _('View Cockpit')},
  146. {pressed = iCommandViewDownRight, up = iCommandViewStop, name = _('View down right'), category = _('View Cockpit')},
  147. {pressed = iCommandViewDownLeft, up = iCommandViewStop, name = _('View down left'), category = _('View Cockpit')},
  148. {pressed = iCommandViewUpLeft, up = iCommandViewStop, name = _('View up left'), category = _('View Cockpit')},
  149. {down = iCommandViewCameraUp, up = iCommandViewCameraCenter, name = _('Camera view up'), category = _('View Cockpit')},
  150. {down = iCommandViewCameraDown, up = iCommandViewCameraCenter, name = _('Camera view down'), category = _('View Cockpit')},
  151. {down = iCommandViewCameraLeft, up = iCommandViewCameraCenter, name = _('Camera view left'), category = _('View Cockpit')},
  152. {down = iCommandViewCameraRight, up = iCommandViewCameraCenter, name = _('Camera view right'), category = _('View Cockpit')},
  153. {down = iCommandViewCameraUpLeft, up = iCommandViewCameraCenter, name = _('Camera view up-left'), category = _('View Cockpit')},
  154. {down = iCommandViewCameraDownLeft, up = iCommandViewCameraCenter, name = _('Camera view down-left'), category = _('View Cockpit')},
  155. {down = iCommandViewCameraUpRight, up = iCommandViewCameraCenter, name = _('Camera view up-right'), category = _('View Cockpit')},
  156. {down = iCommandViewCameraDownRight, up = iCommandViewCameraCenter, name = _('Camera view down-right'), category = _('View Cockpit')},
  157.  
  158. {down = iCommandViewCameraUpSlow, name = _('Camera view up slow'), category = _('View Cockpit')},
  159. {down = iCommandViewCameraDownSlow, name = _('Camera view down slow'), category = _('View Cockpit')},
  160. {down = iCommandViewCameraLeftSlow, name = _('Camera view left slow'), category = _('View Cockpit')},
  161. {down = iCommandViewCameraRightSlow, name = _('Camera view right slow'), category = _('View Cockpit')},
  162. {down = iCommandViewCameraUpLeftSlow, name = _('Camera view up-left slow'), category = _('View Cockpit')},
  163. {down = iCommandViewCameraDownLeftSlow, name = _('Camera view down-left slow'), category = _('View Cockpit')},
  164. {down = iCommandViewCameraDownRight, name = _('Camera view down-right slow'), category = _('View Cockpit')},
  165. {down = iCommandViewCameraUpRightSlow, name = _('Camera view up-right slow'), category = _('View Cockpit')},
  166. {down = iCommandViewCameraCenter, name = _('Center camera view'), category = _('View Cockpit')},
  167. {down = iCommandViewCameraReturn, name = _('Return camera'), category = _('View Cockpit')},
  168. {down = iCommandViewCameraBaseReturn, name = _('Return camera base'), category = _('View Cockpit')},
  169.  
  170. {down = iCommandViewSnapView0,  up = iCommandViewSnapViewStop, name = _('Snap View 0'), category = _('View Cockpit')},
  171. {down = iCommandViewSnapView1,  up = iCommandViewSnapViewStop, name = _('Snap View 1'), category = _('View Cockpit')},
  172. {down = iCommandViewSnapView2,  up = iCommandViewSnapViewStop, name = _('Snap View 2'), category = _('View Cockpit')},
  173. {down = iCommandViewSnapView3,  up = iCommandViewSnapViewStop, name = _('Snap View 3'), category = _('View Cockpit')},
  174. {down = iCommandViewSnapView4,  up = iCommandViewSnapViewStop, name = _('Snap View 4'), category = _('View Cockpit')},
  175. {down = iCommandViewSnapView5,  up = iCommandViewSnapViewStop, name = _('Snap View 5'), category = _('View Cockpit')},
  176. {down = iCommandViewSnapView6,  up = iCommandViewSnapViewStop, name = _('Snap View 6'), category = _('View Cockpit')},
  177. {down = iCommandViewSnapView7,  up = iCommandViewSnapViewStop, name = _('Snap View 7'), category = _('View Cockpit')},
  178. {down = iCommandViewSnapView8,  up = iCommandViewSnapViewStop, name = _('Snap View 8'), category = _('View Cockpit')},
  179. {down = iCommandViewSnapView9,  up = iCommandViewSnapViewStop, name = _('Snap View 9'), category = _('View Cockpit')},
  180.  
  181. {down = iCommandViewLeftMirrorOn ,  up = iCommandViewLeftMirrorOff , name = _('Mirror glance'), category = _('View Cockpit')},
  182.  
  183.  
  184. {pressed = iCommandViewForward, up = iCommandViewForwardStop, name = _('Zoom in'), category = _('View Cockpit')},
  185. {pressed = iCommandViewBack, up = iCommandViewBackStop, name = _('Zoom out'), category = _('View Cockpit')},
  186.  
  187. -- Cockpit Camera Motion (������������ ������ � ������)
  188. {pressed = iCommandViewPitCameraMoveUp, up = iCommandViewPitCameraMoveStop, name = _('Cockpit Camera Move Up'), category = _('View Cockpit')},
  189. {pressed = iCommandViewPitCameraMoveDown, up = iCommandViewPitCameraMoveStop, name = _('Cockpit Camera Move Down'), category = _('View Cockpit')},
  190. {pressed = iCommandViewPitCameraMoveLeft, up = iCommandViewPitCameraMoveStop, name = _('Cockpit Camera Move Left'), category = _('View Cockpit')},
  191. {pressed = iCommandViewPitCameraMoveRight, up = iCommandViewPitCameraMoveStop, name = _('Cockpit Camera Move Right'), category = _('View Cockpit')},
  192. {pressed = iCommandViewPitCameraMoveForward, up = iCommandViewPitCameraMoveStop, name = _('Cockpit Camera Move Forward'), category = _('View Cockpit')},
  193. {pressed = iCommandViewPitCameraMoveBack, up = iCommandViewPitCameraMoveStop, name = _('Cockpit Camera Move Back'), category = _('View Cockpit')},
  194. {down = iCommandViewPitCameraMoveCenter, name = _('Cockpit Camera Move Center'), category = _('View Cockpit')},
  195.  
  196. {down = iCommandViewTransposeModeOn, up = iCommandViewTransposeModeOff, name = _('Camera transpose mode (press and hold)'), category = _('View Cockpit')},
  197. {down = iCommand_ExplorationStart, name = _('Enable visual recon mode'), category = _('View Cockpit')},
  198.  
  199. -- Extended view
  200. {down = iCommandViewCameraJiggle, name = _('Camera jiggle toggle'), category = _('View Extended')},
  201. {down = iCommandViewKeepTerrain, name = _('Camera terrain altitude hold'), category = _('View Extended')},
  202. {down = iCommandViewFriends, name = _('View friends mode'), category = _('View Extended')},
  203. {down = iCommandViewEnemies, name = _('View enemies mode'), category = _('View Extended')},
  204. {down = iCommandViewAll, name = _('View all mode'), category = _('View Extended')},
  205. {down = iCommandViewPlus, name = _('Toggle tracking launched weapon'), category = _('View Extended')},
  206. {down = iCommandViewSwitchForward, name = _('Objects switching direction forward '), category = _('View Extended')},
  207. {down = iCommandViewSwitchReverse, name = _('Objects switching direction reverse '), category = _('View Extended')},
  208. {down = iCommandViewObjectIgnore, name = _('Object exclude '), category = _('View Extended')},
  209. {down = iCommandViewObjectsAll, name = _('Objects all excluded - include'), category = _('View Extended')},
  210.  
  211. -- Padlock
  212. {down = iCommandAllMissilePadlock, name = _('Padlock missiles all'), category = _('View Padlock')},
  213. {down = iCommandThreatMissilePadlock, name = _('Padlock missile threat'), category = _('View Padlock')},
  214. {down = iCommandViewLock, name = _('Padlock cycle'), category = _('View Padlock')},
  215. {down = iCommandViewUnlock, name = _('Padlock Off (stop padlock)'), category = _('View Padlock')},
  216. {down = iCommandViewTerrainLock, name = _('Padlock terrain point'), category = _('View Padlock')},
  217.  
  218.  
  219. -- Labels
  220. {down = iCommandMarkerState, name = _('Labels All'), category = _('Labels')},
  221. {down = iCommandMarkerStatePlane, name = _('Labels Aircraft'), category = _('Labels')},
  222. {down = iCommandMarkerStateRocket, name = _('Labels Missile'), category = _('Labels')},
  223. {down = iCommandMarkerStateShip, name = _('Labels Vehicle & Ship'), category = _('Labels')},
  224.  
  225. -- Stick
  226. {combos = {{key = 'JOY_BTN2'}},     down = iCommandPlanePickleOn, up = iCommandPlanePickleOff, name = _('Weapon release'), category = _('Stick')},
  227. {combos = {{key = 'JOY_BTN1'}},     down = iCommandPlaneFire, up = iCommandPlaneFireOff, name = _('Gun fire'), category = _('Stick')},
  228.  
  229. -- Flight Control
  230. {down = iCommandPlaneUpStart, up = iCommandPlaneUpStop, name = _('Aircraft Pitch Down'), category = _('Flight Control')},
  231. {down = iCommandPlaneDownStart, up = iCommandPlaneDownStop, name = _('Aircraft Pitch Up'), category = _('Flight Control')},
  232. {down = iCommandPlaneLeftStart, up = iCommandPlaneLeftStop, name = _('Aircraft Bank Left'), category = _('Flight Control')},
  233. {down = iCommandPlaneRightStart, up = iCommandPlaneRightStop, name = _('Aircraft Bank Right'), category = _('Flight Control')},
  234. {down = iCommandPlaneLeftRudderStart, up = iCommandPlaneLeftRudderStop, name = _('Aircraft Rudder Left'), category = _('Flight Control')},
  235. {down = iCommandPlaneRightRudderStart, up = iCommandPlaneRightRudderStop, name = _('Aircraft Rudder Right'), category = _('Flight Control')},
  236.  
  237. {pressed = device_commands.Button_23, cockpit_device_id  = devices.ENGINE_SYSTEM, value_pressed = 1.0,  name = _('Throttle Up'), category = _('Flight Control')},
  238. {pressed = device_commands.Button_23, cockpit_device_id  = devices.ENGINE_SYSTEM, value_pressed = -1.0, name = _('Throttle Down'), category = _('Flight Control')},
  239. {pressed = device_commands.Button_24, cockpit_device_id  = devices.ENGINE_SYSTEM, value_pressed = 1.0,  name = _('Engine RPM Increase'), category = _('Flight Control')},
  240. {pressed = device_commands.Button_24, cockpit_device_id  = devices.ENGINE_SYSTEM, value_pressed = -1.0, name = _('Engine RPM Decrease'), category = _('Flight Control')},
  241.  
  242. {down = iCommandPlane_P_51_WarEmergencyPower, name = _('War Emergency Power'), category = _('Flight Control')},
  243.  
  244.  
  245. {down = device_commands.Button_11, cockpit_device_id  = devices.ENGINE_SYSTEM, value_down = 0.0, name = _('Mixture IDLE CUT OFF'), category = _('Flight Control')},
  246. {down = device_commands.Button_11, cockpit_device_id  = devices.ENGINE_SYSTEM, value_down = 0.1, name = _('Mixture RUN'), category = _('Flight Control')},
  247. {down = device_commands.Button_11, cockpit_device_id  = devices.ENGINE_SYSTEM, value_down = 0.2, name = _('Mixture EMERGENCY FULL RICH'), category = _('Flight Control')},
  248. {down = device_commands.Button_20, cockpit_device_id  = devices.ENGINE_SYSTEM, value_down = 1.0, name = _('Mixture control (rotary)'), category = _('Flight Control')},
  249.  
  250. {down = device_commands.Button_15, up = device_commands.Button_15, cockpit_device_id  = devices.CONTROL_SYSTEM, value_down = 1.0, value_up = 0.0, name = _('Stick lock in the Forward Position'), category = _('Flight Control')},
  251. {down = device_commands.Button_16, up = device_commands.Button_16, cockpit_device_id  = devices.CONTROL_SYSTEM, value_down = 1.0, value_up = 0.0, name = _('Stick lock in the Neutral Position'), category = _('Flight Control')},
  252.  
  253. {pressed = device_commands.Button_13, cockpit_device_id  = devices.ENGINE_SYSTEM, value_pressed = 1.0, name = _('Throttle Control Lock'), category = _('Flight Control')},
  254. {pressed = device_commands.Button_13, cockpit_device_id  = devices.ENGINE_SYSTEM, value_pressed = -1.0, name = _('Throttle Control Unlock'), category = _('Flight Control')},
  255. {pressed = device_commands.Button_15, cockpit_device_id  = devices.ENGINE_SYSTEM, value_pressed = 1.0, name = _('Propeller & Mixture Lock'), category = _('Flight Control')},
  256. {pressed = device_commands.Button_15, cockpit_device_id  = devices.ENGINE_SYSTEM, value_pressed = -1.0, name = _('Propeller & Mixture Unlock'), category = _('Flight Control')},
  257.  
  258. --flaps
  259. {down = device_commands.Button_2, cockpit_device_id  = devices.CONTROL_SYSTEM, value_down = 1.0, name = _('Flaps Up'), category = _('Flight Control')},
  260. {down = device_commands.Button_2, cockpit_device_id  = devices.CONTROL_SYSTEM, value_down = 0.0, name = _('Flaps Down'), category = _('Flight Control')},
  261.  
  262. --Trimmers
  263. {pressed = device_commands.Button_11, cockpit_device_id  = devices.CONTROL_SYSTEM, value_pressed = -0.1, name = _('Trim Aileron Left'), category = _('Flight Control')},
  264. {pressed = device_commands.Button_11, cockpit_device_id  = devices.CONTROL_SYSTEM, value_pressed = 0.1, name = _('Trim Aileron Right'), category = _('Flight Control')},
  265. {pressed = device_commands.Button_12, cockpit_device_id  = devices.CONTROL_SYSTEM, value_pressed = 0.05, name = _('Trim Elevator Down'), category = _('Flight Control')},
  266. {pressed = device_commands.Button_12, cockpit_device_id  = devices.CONTROL_SYSTEM, value_pressed = -0.05, name = _('Trim Elevator Up'), category = _('Flight Control')},
  267. {pressed = device_commands.Button_13, cockpit_device_id  = devices.CONTROL_SYSTEM, value_pressed = -0.1, name = _('Trim Rudder Left'), category = _('Flight Control')},
  268. {pressed = device_commands.Button_13, cockpit_device_id  = devices.CONTROL_SYSTEM, value_pressed = 0.1, name = _('Trim Rudder Right'), category = _('Flight Control')},
  269. {down = device_commands.Button_14, cockpit_device_id  = devices.CONTROL_SYSTEM, value_down = 1.0, name = _('Trimmers Reset'), category = _('Flight Control')},
  270.  
  271. -- Systems
  272. {down = iCommandPlaneWheelBrakeOn, up = iCommandPlaneWheelBrakeOff, name = _('Wheel brake Both'), category = _('Systems')},
  273. {down = iCommandPlaneWheelBrakeLeftOn, up = iCommandPlaneWheelBrakeLeftOff, name = _('Wheel brake Left'), category = _('Systems')},
  274. {down = iCommandPlaneWheelBrakeRightOn, up = iCommandPlaneWheelBrakeRightOff, name = _('Wheel brake Right'), category = _('Systems')},
  275. {down = device_commands.Button_6, up = device_commands.Button_6, cockpit_device_id  = devices.CONTROL_SYSTEM, value_down = 1.0, value_up = 0.0, name = _('Wheel brake Parking'), category = _('Systems')},
  276. {down = iCommandPlaneEject, name = _('Bailout'), category = _('Systems')},
  277. {down = device_commands.Button_5, cockpit_device_id  = devices.WEAPON_CONTROL, value_down = 1, name = _('Bomb salvo release Left'), category = _('Systems')},
  278. {down = device_commands.Button_6, cockpit_device_id  = devices.WEAPON_CONTROL, value_down = 1, name = _('Bomb salvo release Right'), category = _('Systems')},
  279.  
  280. {pressed = device_commands.Button_4, cockpit_device_id  = devices.CPT_MECH, value_pressed = -1.0, name = _('Canopy Closing'), category = _('Systems')},
  281. {pressed = device_commands.Button_4, cockpit_device_id  = devices.CPT_MECH, value_pressed = 1.0, name = _('Canopy Opening'), category = _('Systems')},
  282. {down = device_commands.Button_5, cockpit_device_id  = devices.CPT_MECH, value_down = 1.0, name = _('Canopy Emergency Release'), category = _('Systems')},
  283.  
  284. {down = device_commands.Button_2, cockpit_device_id  = devices.HYDRAULIC_SYSTEM, value_down = 1.0, name = _('Hydraulic Emergency Release Knob'), category = _('Systems')},
  285.  
  286. {down = device_commands.Button_4, cockpit_device_id  = devices.CONTROL_SYSTEM, value_down = 1.0, name = _('Landing Gear Up/Down'), category = _('Systems')},
  287. {down = device_commands.Button_18, up = device_commands.Button_18, cockpit_device_id  = devices.CONTROL_SYSTEM, value_down = 1.0, value_up = 0.0, name = _('Landing Gear Safe Light Test'), category = _('Systems')},
  288. {down = device_commands.Button_7, up = device_commands.Button_7, cockpit_device_id  = devices.CONTROL_SYSTEM, value_down = 1.0, value_up = 0.0, name = _('Landing Gear Unsafe Light Test'), category = _('Systems')},
  289.  
  290. {down = device_commands.Button_2, cockpit_device_id  = devices.OXYGEN_SYSTEM, value_down = 1.0, name = _('Oxygen regulator Deluter lever Auto-Mix On-Off'), category = _('Systems')},
  291. {down = device_commands.Button_4, cockpit_device_id  = devices.OXYGEN_SYSTEM, value_down = 1.0, name = _('Oxygen regulator Emergency By-Pass Valve'), category = _('Systems')},
  292.  
  293. --K-14 GunSight
  294. {pressed = device_commands.Button_14, cockpit_device_id  = devices.K14_GUNSIGHT, value_pressed = 0.5,   name = _('Gunsight target span Increase'), category = _('K-14 gunsight')},
  295. {pressed = device_commands.Button_14, cockpit_device_id  = devices.K14_GUNSIGHT, value_pressed = -0.5,   name = _('Gunsight target span Decrease'), category = _('K-14 gunsight')},
  296.  
  297. {pressed = device_commands.Button_2, cockpit_device_id  = devices.K14_GUNSIGHT, value_pressed = 0.7,     name = _('Gunsight range to target Increase'), category = _('K-14 gunsight')},
  298. {pressed = device_commands.Button_2, cockpit_device_id  = devices.K14_GUNSIGHT, value_pressed = -0.7,    name = _('Gunsight range to target Decrease'), category = _('K-14 gunsight')},
  299.  
  300. {down = device_commands.Button_3, cockpit_device_id  = devices.K14_GUNSIGHT, value_down = 0.0,   name = _('Gunsight mode FIXED'), category = _('K-14 gunsight')},
  301. {down = device_commands.Button_3, cockpit_device_id  = devices.K14_GUNSIGHT, value_down = 0.1,   name = _('Gunsight mode FIXED GYRO'), category = _('K-14 gunsight')},
  302. {down = device_commands.Button_3, cockpit_device_id  = devices.K14_GUNSIGHT, value_down = 0.2,   name = _('Gunsight mode GYRO'), category = _('K-14 gunsight')},
  303. {down = device_commands.Button_9, cockpit_device_id  = devices.K14_GUNSIGHT, value_down = 1.0,   name = _('Gunsight fixed ring blanc lever'), category = _('K-14 gunsight')},
  304. {down = device_commands.Button_17, cockpit_device_id  = devices.K14_GUNSIGHT, value_down = 1.0,  name = _('Gunsight mode (rotary)'), category = _('K-14 gunsight')},
  305.  
  306. {down = device_commands.Button_8, cockpit_device_id  = devices.K14_GUNSIGHT, value_down = 1.0,   name = _('Gunsight gyromotor power'), category = _('K-14 gunsight')},
  307. {pressed = device_commands.Button_10, cockpit_device_id  = devices.K14_GUNSIGHT, value_pressed = 1.0,    name = _('Gunsight brightness Increase'), category = _('K-14 gunsight')},
  308. {pressed = device_commands.Button_10, cockpit_device_id  = devices.K14_GUNSIGHT, value_pressed = -1.0,   name = _('Gunsight brightness Decrease'), category = _('K-14 gunsight')},
  309.  
  310.  
  311. --Right Switch Panel
  312. {down = device_commands.Button_2, cockpit_device_id  = devices.RIGHT_SWITCH_PANEL, value_down = 1.0,     name = _('Battery'), category = _('Right Switch Panel')},
  313. {down = device_commands.Button_4, cockpit_device_id  = devices.RIGHT_SWITCH_PANEL, value_down = 1.0,     name = _('Generator'), category = _('Right Switch Panel')},
  314. {down = device_commands.Button_20, cockpit_device_id  = devices.RIGHT_SWITCH_PANEL, value_down = 1.0, name = _('Gun heat'), category = _('Right Switch Panel')},
  315. {down = device_commands.Button_6, cockpit_device_id  = devices.RIGHT_SWITCH_PANEL, value_down = 1.0,     name = _('Pitot heat'), category = _('Right Switch Panel')},
  316.  
  317. {down = device_commands.Button_8, cockpit_device_id  = devices.RIGHT_SWITCH_PANEL, value_down = -1.0, name = _('Position lights wing DIM'), category = _('Right Switch Panel')},
  318. {down = device_commands.Button_8, cockpit_device_id  = devices.RIGHT_SWITCH_PANEL, value_down = 0.0,     name = _('Position lights wing OFF'), category = _('Right Switch Panel')},
  319. {down = device_commands.Button_8, cockpit_device_id  = devices.RIGHT_SWITCH_PANEL, value_down = 1.0,     name = _('Position lights wing BRIGHT'), category = _('Right Switch Panel')},
  320. {down = device_commands.Button_17, cockpit_device_id  = devices.RIGHT_SWITCH_PANEL, value_down = 1.0,    name = _('Position lights wing (rotary)'), category = _('Right Switch Panel')},
  321.  
  322. {down = device_commands.Button_9, cockpit_device_id  = devices.RIGHT_SWITCH_PANEL, value_down = -1.0, name = _('Position light tail DIM'), category = _('Right Switch Panel')},
  323. {down = device_commands.Button_9, cockpit_device_id  = devices.RIGHT_SWITCH_PANEL, value_down = 0.0,     name = _('Position light tail OFF'), category = _('Right Switch Panel')},
  324. {down = device_commands.Button_9, cockpit_device_id  = devices.RIGHT_SWITCH_PANEL, value_down = 1.0,     name = _('Position light tail BRIGHT'), category = _('Right Switch Panel')},
  325. {down = device_commands.Button_18, cockpit_device_id  = devices.RIGHT_SWITCH_PANEL, value_down = 1.0,    name = _('Position light tail (rotary)'), category = _('Right Switch Panel')},
  326.  
  327.  
  328. {down = device_commands.Button_21, cockpit_device_id  = devices.RIGHT_SWITCH_PANEL, value_down = 1.0, name = _('Recognition light red Steady'), category = _('Right Switch Panel')},
  329. {down = device_commands.Button_22, cockpit_device_id  = devices.RIGHT_SWITCH_PANEL, value_down = 1.0, name = _('Recognition light green Steady'), category = _('Right Switch Panel')},
  330. {down = device_commands.Button_23, cockpit_device_id  = devices.RIGHT_SWITCH_PANEL, value_down = 1.0, name = _('Recognition light amber Steady'), category = _('Right Switch Panel')},
  331. {down = device_commands.Button_21, cockpit_device_id  = devices.RIGHT_SWITCH_PANEL, value_down = 0.0, name = _('Recognition light red Off'), category = _('Right Switch Panel')},
  332. {down = device_commands.Button_22, cockpit_device_id  = devices.RIGHT_SWITCH_PANEL, value_down = 0.0, name = _('Recognition light green Off'), category = _('Right Switch Panel')},
  333. {down = device_commands.Button_23, cockpit_device_id  = devices.RIGHT_SWITCH_PANEL, value_down = 0.0, name = _('Recognition light amber Off'), category = _('Right Switch Panel')},
  334. {down = device_commands.Button_21, cockpit_device_id  = devices.RIGHT_SWITCH_PANEL, value_down = -1.0, name = _('Recognition light red Key'), category = _('Right Switch Panel')},
  335. {down = device_commands.Button_22, cockpit_device_id  = devices.RIGHT_SWITCH_PANEL, value_down = -1.0, name = _('Recognition light green Key'), category = _('Right Switch Panel')},
  336. {down = device_commands.Button_23, cockpit_device_id  = devices.RIGHT_SWITCH_PANEL, value_down = -1.0, name = _('Recognition light amber Key'), category = _('Right Switch Panel')},
  337.  
  338. {down = device_commands.Button_30, cockpit_device_id  = devices.RIGHT_SWITCH_PANEL, value_down = 1.0, name = _('Recognition light red (rotary)'), category = _('Right Switch Panel')},
  339. {down = device_commands.Button_31, cockpit_device_id  = devices.RIGHT_SWITCH_PANEL, value_down = 1.0, name = _('Recognition light green (rotary)'), category = _('Right Switch Panel')},
  340. {down = device_commands.Button_32, cockpit_device_id  = devices.RIGHT_SWITCH_PANEL, value_down = 1.0, name = _('Recognition light amber (rotary)'), category = _('Right Switch Panel')},
  341.  
  342. {down = device_commands.Button_24, up = device_commands.Button_24, cockpit_device_id  = devices.RIGHT_SWITCH_PANEL, value_down = 1.0, value_up = 0.0, name = _('Recognition lights key'), category = _('Right Switch Panel')},
  343. {down = device_commands.Button_25, up = device_commands.Button_25, cockpit_device_id  = devices.RIGHT_SWITCH_PANEL, value_down = 1.0, value_up = 0.0, name = _('Circuit Protectors Cover'), category = _('Right Switch Panel')},
  344.  
  345.  
  346. --Remote compass
  347. {pressed = device_commands.Button_2, cockpit_device_id = 23, value_pressed = -1.0, name = _('Compass course Decrease'), category = _('Front Dash')},
  348. {pressed = device_commands.Button_2, cockpit_device_id = 23, value_pressed = 1.0, name = _('Compass course Increase'), category = _('Front Dash')},
  349.  
  350. --Directional gyro
  351. {pressed = device_commands.Button_2, cockpit_device_id  = devices.DIRECTIONAL_GYRO, value_pressed = -1.0, name = _('Directional gyro heading Decrease'), category = _('Front Dash')},
  352. {pressed = device_commands.Button_2, cockpit_device_id  = devices.DIRECTIONAL_GYRO, value_pressed = 1.0, name = _('Directional gyro heading Increase'), category = _('Front Dash')},
  353. {down = device_commands.Button_4,    cockpit_device_id  = devices.DIRECTIONAL_GYRO, value_down = 1,       name = _('Directional gyro Cage/Uncage'), category = _('Front Dash')},
  354.  
  355. --  AN5736 Flight Indicator (Gyro Horizon Indicator)
  356. {pressed = device_commands.Button_4, cockpit_device_id  = devices.ARTIFICIAL_HORIZON, value_pressed = -1.0, name = _('Horizon pitch Decrease'), category = _('Front Dash')},
  357. {pressed = device_commands.Button_4, cockpit_device_id  = devices.ARTIFICIAL_HORIZON, value_pressed = 1.0, name = _('Horizon pitch Increase'), category = _('Front Dash')},
  358. {down = device_commands.Button_5, cockpit_device_id  = devices.ARTIFICIAL_HORIZON, value_down = 1.0, name = _('Horizon Cage'), category = _('Front Dash')},
  359. {pressed = device_commands.Button_6, cockpit_device_id  = devices.ARTIFICIAL_HORIZON, value_pressed = -1.0, name = _('Horizon cage knob OFF'), category = _('Front Dash')},
  360. {pressed = device_commands.Button_6, cockpit_device_id  = devices.ARTIFICIAL_HORIZON, value_pressed = 1.0, name = _('Horizon cage knob ON'), category = _('Front Dash')},
  361.  
  362. --Clock
  363. {down = device_commands.Button_3, cockpit_device_id  = devices.CLOCK, value_down = 1.0,  name = _('Clock Winding/Adjust'), category = _('Front Dash')},
  364. {pressed = device_commands.Button_4, cockpit_device_id  = devices.CLOCK, value_pressed = -1.0, name = _('Clock Winding/Adjust Decrease'), category = _('Front Dash')},
  365. {pressed = device_commands.Button_4, cockpit_device_id  = devices.CLOCK, value_pressed = 1.0, name = _('Clock Winding/Adjust Increase'), category = _('Front Dash')},
  366.  
  367. --Altimeter
  368. {pressed = device_commands.Button_2, cockpit_device_id  = devices.ALTIMETER, value_pressed = -1.0, name = _('Altimeter pressure set Decrease'), category = _('Front Dash')},
  369. {pressed = device_commands.Button_2, cockpit_device_id  = devices.ALTIMETER, value_pressed = 1.0, name = _('Altimeter pressure set Increase'), category = _('Front Dash')},
  370.  
  371. --G-meter
  372. {down = device_commands.Button_1, up = device_commands.Button_1, cockpit_device_id  = devices.ACCELEROMETER, value_down = 0.6, value_up = 0.0, name = _('G-meter Reset'), category = _('Front Dash')},
  373.  
  374. --VHF Radio
  375. {down = device_commands.Button_9, cockpit_device_id  = devices.VHF_RADIO, value_down = 1.0, name = _('Radio Power'), category = _('VHF Radio')},
  376. {down = device_commands.Button_10, cockpit_device_id  = devices.VHF_RADIO, value_down = 1.0, name = _('Radio chanel A'), category = _('VHF Radio')},
  377. {down = device_commands.Button_11, cockpit_device_id  = devices.VHF_RADIO, value_down = 1.0, name = _('Radio chanel B'), category = _('VHF Radio')},
  378. {down = device_commands.Button_12, cockpit_device_id  = devices.VHF_RADIO, value_down = 1.0, name = _('Radio chanel C'), category = _('VHF Radio')},
  379. {down = device_commands.Button_13, cockpit_device_id  = devices.VHF_RADIO, value_down = 1.0, name = _('Radio chanel D'), category = _('VHF Radio')},
  380. {pressed = device_commands.Button_14, cockpit_device_id  = devices.VHF_RADIO, value_pressed = -1.0, name = _('Radio lights dimmer Decrease'), category = _('VHF Radio')},
  381. {pressed = device_commands.Button_14, cockpit_device_id  = devices.VHF_RADIO, value_pressed = 1.0, name = _('Radio lights dimmer Increase'), category = _('VHF Radio')},
  382.  
  383. {down = device_commands.Button_8, up = device_commands.Button_8, cockpit_device_id  = devices.VHF_RADIO, value_down = -1.0, value_up = 0.0, name = _('Radio Mode T'), category = _('VHF Radio')},
  384. {down = device_commands.Button_7, cockpit_device_id  = devices.VHF_RADIO, value_down = 0.0, name = _('Radio mode R'), category = _('VHF Radio')},
  385. {down = device_commands.Button_7, cockpit_device_id  = devices.VHF_RADIO, value_down = 1.0, name = _('Radio mode REM'), category = _('VHF Radio')},
  386. {down = device_commands.Button_18,  cockpit_device_id  = devices.VHF_RADIO, value_down = 1.0,  name = _('Radio mode switch locking lever'), category = _('VHF Radio')},
  387. {pressed = device_commands.Button_16, cockpit_device_id  = devices.VHF_RADIO, value_pressed = -1.0, name = _('VHF radio volume Decrease'), category = _('VHF Radio')},
  388. {pressed = device_commands.Button_16, cockpit_device_id  = devices.VHF_RADIO, value_pressed = 1.0, name = _('VHF radio volume Increase'), category = _('VHF Radio')},
  389.  
  390. --Front Switch Box
  391. {down = device_commands.Button_7, cockpit_device_id  = devices.FRONT_SWITCH_BOX, value_down = 1.0, name = _('Gun safety switch GUN CAMERA SIGHT'), category = _('Front Switch Box')},
  392. {down = device_commands.Button_7, cockpit_device_id  = devices.FRONT_SWITCH_BOX, value_down = 0.0, name = _('Gun safety switch OFF'), category = _('Front Switch Box')},
  393. {down = device_commands.Button_7, cockpit_device_id  = devices.FRONT_SWITCH_BOX, value_down = -1.0, name = _('Gun safety switch CAMERA SIGHT'), category = _('Front Switch Box')},
  394. {down = device_commands.Button_16, cockpit_device_id  = devices.FRONT_SWITCH_BOX, value_down = 1.0, name = _('Gun safety switch (rotary)'), category = _('Front Switch Box')},
  395.  
  396. {down = device_commands.Button_2, cockpit_device_id  = devices.FRONT_SWITCH_BOX, value_down = 0.0,   name = _('Ignition switch OFF'), category = _('Front Switch Box')},
  397. {down = device_commands.Button_2, cockpit_device_id  = devices.FRONT_SWITCH_BOX, value_down = 0.1,   name = _('Ignition switch Right'), category = _('Front Switch Box')},
  398. {down = device_commands.Button_2, cockpit_device_id  = devices.FRONT_SWITCH_BOX, value_down = 0.2,   name = _('Ignition switch Left'), category = _('Front Switch Box')},
  399. {down = device_commands.Button_2, cockpit_device_id  = devices.FRONT_SWITCH_BOX, value_down = 0.3,   name = _('Ignition switch BOTH'), category = _('Front Switch Box')},
  400. {down = device_commands.Button_6, cockpit_device_id  = devices.FRONT_SWITCH_BOX, value_down = 0.3,   name = _('Ignition switch (rotary)'), category = _('Front Switch Box')},
  401.  
  402. {pressed = device_commands.Button_3, cockpit_device_id  = devices.FRONT_SWITCH_BOX, value_pressed = -1.0, name = _('Cockpit Lights Decrease'), category = _('Front Switch Box')},
  403. {pressed = device_commands.Button_3, cockpit_device_id  = devices.FRONT_SWITCH_BOX, value_pressed = 1.0, name = _('Cockpit Lights Increase'), category = _('Front Switch Box')},
  404.  
  405. {down = device_commands.Button_8, up = device_commands.Button_8, cockpit_device_id  = devices.FRONT_SWITCH_BOX, value_down = 1.0,   value_up = 0.0, name = _('Silence Horn'), category = _('Front Switch Box')},
  406.  
  407. {down = device_commands.Button_9, cockpit_device_id  = devices.FRONT_SWITCH_BOX, value_down = -1.0, name = _('Bomb arming switch left ARM'), category = _('Front Switch Box')},
  408. {down = device_commands.Button_9, cockpit_device_id  = devices.FRONT_SWITCH_BOX, value_down = 0.0, name = _('Bomb arming switch left OFF'), category = _('Front Switch Box')},
  409. {down = device_commands.Button_9, cockpit_device_id  = devices.FRONT_SWITCH_BOX, value_down = 1.0, name = _('Bomb arming switch left CHEM. RELEASE'), category = _('Front Switch Box')},
  410. {down = device_commands.Button_17, cockpit_device_id  = devices.FRONT_SWITCH_BOX, value_down = 1.0, name = _('Bomb arming switch left (rotary)'), category = _('Front Switch Box')},
  411. {down = device_commands.Button_10, cockpit_device_id  = devices.FRONT_SWITCH_BOX, value_down = -1.0, name = _('Bomb arming switch right ARM'), category = _('Front Switch Box')},
  412. {down = device_commands.Button_10, cockpit_device_id  = devices.FRONT_SWITCH_BOX, value_down = 0.0, name = _('Bomb arming switch right OFF'), category = _('Front Switch Box')},
  413. {down = device_commands.Button_10, cockpit_device_id  = devices.FRONT_SWITCH_BOX, value_down = 1.0, name = _('Bomb arming switch right CHEM. RELEASE'), category = _('Front Switch Box')},
  414. {down = device_commands.Button_18, cockpit_device_id  = devices.FRONT_SWITCH_BOX, value_down = 1.0, name = _('Bomb arming switch right (rotary)'), category = _('Front Switch Box')},
  415.  
  416. {down = device_commands.Button_11, cockpit_device_id  = devices.FRONT_SWITCH_BOX, value_down = 0.0, name = _('Bomb-rocket selector switch SAFE'), category = _('Front Switch Box')},
  417. {down = device_commands.Button_11, cockpit_device_id  = devices.FRONT_SWITCH_BOX, value_down = 0.1, name = _('Bomb-rocket selector switch TRAIN'), category = _('Front Switch Box')},
  418. {down = device_commands.Button_11, cockpit_device_id  = devices.FRONT_SWITCH_BOX, value_down = 0.2, name = _('Bomb-rocket selector switch BOTH'), category = _('Front Switch Box')},
  419. {down = device_commands.Button_11, cockpit_device_id  = devices.FRONT_SWITCH_BOX, value_down = 0.3, name = _('Bomb-rocket selector switch ROCKETS'), category = _('Front Switch Box')},
  420. {down = device_commands.Button_19, cockpit_device_id  = devices.FRONT_SWITCH_BOX, value_down = 1.0, name = _('Bomb-rocket selector switch (rotary)'), category = _('Front Switch Box')},
  421.  
  422. --Rocket Control Panel
  423. {down = device_commands.Button_7, cockpit_device_id  = devices.WEAPON_CONTROL, value_down = 0.0, name = _('Rockets release control switch OFF'), category = _('Rocket Control Panel')},
  424. {down = device_commands.Button_7, cockpit_device_id  = devices.WEAPON_CONTROL, value_down = 0.1, name = _('Rockets release control switch SINGLE'), category = _('Rocket Control Panel')},
  425. {down = device_commands.Button_7, cockpit_device_id  = devices.WEAPON_CONTROL, value_down = 0.2, name = _('Rockets release control switch AUTO'), category = _('Rocket Control Panel')},
  426. {down = device_commands.Button_15, cockpit_device_id  = devices.WEAPON_CONTROL, value_down = 1.0, name = _('Rockets release control switch (rotary)'), category = _('Rocket Control Panel')},
  427. {down = device_commands.Button_12, cockpit_device_id  = devices.WEAPON_CONTROL, value_down = -1.0, name = _('Rocket counter reset'), category = _('Rocket Control Panel')},
  428.  
  429. {down = device_commands.Button_11, cockpit_device_id  = devices.WEAPON_CONTROL, value_down = 1, name = _('Rockets Delay/Inst'), category = _('Rocket Control Panel')},
  430.  
  431. --Engine control panel
  432. {down = device_commands.Button_3, cockpit_device_id  = devices.ENGINE_CONTROL_PANEL, value_down = 1.0, name = _('Supercharger switch Cover'), category = _('Engine Control Panel')},
  433. {down = device_commands.Button_1, cockpit_device_id  = devices.ENGINE_CONTROL_PANEL, value_down = 0.0, name = _('Supercharger switch AUTO'), category = _('Engine Control Panel')},
  434. {down = device_commands.Button_1, cockpit_device_id  = devices.ENGINE_CONTROL_PANEL, value_down = 0.1, name = _('Supercharger switch LOW'), category = _('Engine Control Panel')},
  435. {down = device_commands.Button_1, up = device_commands.Button_1, cockpit_device_id  = devices.ENGINE_CONTROL_PANEL, value_down = 0.2, value_up = 0.1, name = _('Supercharger switch HIGH'), category = _('Engine Control Panel')},
  436.  
  437. {down = device_commands.Button_4, up = device_commands.Button_4, cockpit_device_id  = devices.ENGINE_CONTROL_PANEL, value_down = 1.0, value_up = 0.0, name = _('High Blower lamp test'), category = _('Engine Control Panel')},
  438. {down = device_commands.Button_6, cockpit_device_id  = devices.ENGINE_CONTROL_PANEL, value_down = 1.0, name = _('Fuel Booster'), category = _('Engine Control Panel')},
  439. {down = device_commands.Button_12, cockpit_device_id = devices.ENGINE_CONTROL_PANEL, value_down = 1.0, name = _('Fuel Booster ON'), category = _('Engine Control Panel')},
  440. {down = device_commands.Button_12, cockpit_device_id = devices.ENGINE_CONTROL_PANEL, value_down = 0.0, name = _('Fuel Booster OFF'), category = _('Engine Control Panel')},
  441.  
  442. {down = device_commands.Button_7, up = device_commands.Button_7, cockpit_device_id  = devices.ENGINE_CONTROL_PANEL, value_down = 1.0, value_up = 0.0, name = _('Oil Dilute'), category = _('Engine Control Panel')},
  443. {down = device_commands.Button_8, up = device_commands.Button_8, cockpit_device_id  = devices.ENGINE_CONTROL_PANEL, value_down = 1.0, value_up = 0.0, name = _('Starter'), category = _('Engine Control Panel')},
  444. {down = device_commands.Button_10, cockpit_device_id  = devices.ENGINE_CONTROL_PANEL, value_down = 1.0, name = _('Starter Switch Cover'), category = _('Engine Control Panel')},
  445. {down = device_commands.Button_11, up = device_commands.Button_11, cockpit_device_id  = devices.ENGINE_CONTROL_PANEL, value_down = 1.0, value_up = 0.0, name = _('Primer'), category = _('Engine Control Panel')},
  446.  
  447. --Fuel Control
  448. {down = device_commands.Button_1, cockpit_device_id  = devices.FUEL_SYSTEM, value_down = 0.0, name = _('Fuel selector Right Combat Tank'), category = _('Fuel Control')},
  449. {down = device_commands.Button_1, cockpit_device_id  = devices.FUEL_SYSTEM, value_down = 0.1, name = _('Fuel selector Left Main Tank'), category = _('Fuel Control')},
  450. {down = device_commands.Button_1, cockpit_device_id  = devices.FUEL_SYSTEM, value_down = 0.2, name = _('Fuel selector Fuselage Tank'), category = _('Fuel Control')},
  451. {down = device_commands.Button_1, cockpit_device_id  = devices.FUEL_SYSTEM, value_down = 0.3, name = _('Fuel selector Right Main Tank'), category = _('Fuel Control')},
  452. {down = device_commands.Button_1, cockpit_device_id  = devices.FUEL_SYSTEM, value_down = 0.4, name = _('Fuel selector Left Combat Tank'), category = _('Fuel Control')},
  453. {down = device_commands.Button_3, cockpit_device_id  = devices.FUEL_SYSTEM, value_down = 1.0, name = _('Fuel shut-off valve'), category = _('Fuel Control')},
  454. {down = device_commands.Button_6, cockpit_device_id  = devices.FUEL_SYSTEM, value_down = 1.0, name = _('Fuel selector valve (rotary)'), category = _('Fuel Control')},
  455.  
  456. --Rear Warning Radar
  457. {down = device_commands.Button_2, cockpit_device_id  = devices.TAIL_WARNING_RADAR, value_down = 1.0, name = _('Rear warning radar Power'), category = _('Rear Warning Radar')},
  458. {down = device_commands.Button_3, up = device_commands.Button_3, cockpit_device_id  = devices.TAIL_WARNING_RADAR, value_down = 1.0, value_up = 0.0, name = _('Rear warning radar Test'), category = _('Rear Warning Radar')},
  459. {pressed = device_commands.Button_5, cockpit_device_id  = devices.TAIL_WARNING_RADAR, value_pressed = -1.0, name = _('Rear warning radar signal light Decrease'), category = _('Rear Warning Radar')},
  460. {pressed = device_commands.Button_5, cockpit_device_id  = devices.TAIL_WARNING_RADAR, value_pressed = 1.0, name = _('Rear warning radar signal light Increase'), category = _('Rear Warning Radar')},
  461.  
  462. --Detrola receiver
  463. {pressed = device_commands.Button_3, cockpit_device_id = devices.DETROLA, value_pressed = -1.0, name = _('Detrola Frequency Selector Decrease'), category = _('Detrola Receiver')},
  464. {pressed = device_commands.Button_3, cockpit_device_id = devices.DETROLA, value_pressed = 1.0, name = _('Detrola Frequency Selector Increase'), category = _('Detrola Receiver')},
  465. {pressed = device_commands.Button_4, cockpit_device_id = devices.DETROLA, value_pressed = -1.0, name = _('Detrola Volume Decrease'), category = _('Detrola Receiver')},
  466. {pressed = device_commands.Button_4, cockpit_device_id = devices.DETROLA, value_pressed = 1.0, name = _('Detrola Volume Increase'), category = _('Detrola Receiver')},
  467.  
  468. --Homing Adapter
  469. {down = device_commands.Button_1, cockpit_device_id  = devices.HOMING_ADAPTER, value_down = 0.0, name = _('Homing Adapter TRANS'), category = _('Homing Adapter')},
  470. {down = device_commands.Button_1, cockpit_device_id  = devices.HOMING_ADAPTER, value_down = 0.1, name = _('Homing Adapter COMM'), category = _('Homing Adapter')},
  471. {down = device_commands.Button_1, cockpit_device_id  = devices.HOMING_ADAPTER, value_down = 0.2, name = _('Homing Adapter HOMING'), category = _('Homing Adapter')},
  472. {down = device_commands.Button_7, cockpit_device_id  = devices.HOMING_ADAPTER, value_down = 0.2, name = _('Homing Adapter Mode'), category = _('Homing Adapter')},
  473. {down = device_commands.Button_4, cockpit_device_id  = devices.HOMING_ADAPTER, value_down = 1.0, name = _('Homing Adapter CW/MCW'), category = _('Homing Adapter')},
  474. {down = device_commands.Button_3, up = device_commands.Button_3, cockpit_device_id  = devices.HOMING_ADAPTER, value_down = 1.0, value_up = 0.0, name = _('Homing Adapter Circuit Breaker'), category = _('Homing Adapter')},
  475.  
  476. --Iff radio set
  477. {down = device_commands.Button_9, cockpit_device_id  = devices.IFF, value_down = 1.0, name = _('IFF Power On/Off'), category = _('IFF')},
  478. {down = device_commands.Button_12, cockpit_device_id  = devices.IFF, value_down = -1, name = _('IFF Code Decrease'), category = _('IFF')},
  479. {down = device_commands.Button_12, cockpit_device_id  = devices.IFF, value_down = 1, name = _('IFF Code Increase'), category = _('IFF')},
  480. {down = device_commands.Button_18, cockpit_device_id  = devices.IFF, value_down = 1, name = _('IFF Code'), category = _('IFF')},
  481. {down = device_commands.Button_3, cockpit_device_id  = devices.IFF, value_down = -1, name = _('IFF TIME'), category = _('IFF')},
  482. {down = device_commands.Button_3, cockpit_device_id  = devices.IFF, value_down = 0, name = _('IFF OFF'), category = _('IFF')},
  483. {down = device_commands.Button_3, cockpit_device_id  = devices.IFF, value_down = 1, name = _('IFF ON'), category = _('IFF')},
  484. {down = device_commands.Button_19, cockpit_device_id  = devices.IFF, value_down = 1, name = _('IFF Mode'), category = _('IFF')},
  485. {down = device_commands.Button_13, cockpit_device_id  = devices.IFF, value_down = 1.0, name = _('IFF Detonator Circuit On/Off'), category = _('IFF')},
  486. {down = device_commands.Button_10, cockpit_device_id  = devices.IFF, value_down = 1, name = _('IFF Distress Signal'), category = _('IFF')},
  487. {down = device_commands.Button_7, up = device_commands.Button_7, cockpit_device_id  = devices.IFF, value_down = 1.0, value_up = 0.0, name = _('IFF Detonator Left'), category = _('IFF')},
  488. {down = device_commands.Button_8, up = device_commands.Button_8, cockpit_device_id  = devices.IFF, value_down = 1.0, value_up = 0.0, name = _('IFF Detonator Right'), category = _('IFF')},
  489.  
  490.  
  491. --Environment
  492. {pressed = device_commands.Button_4, cockpit_device_id  = devices.ENVIRONMENT_SYSTEM, value_pressed = -1.0, name = _('Defroster Decrease'), category = _('Environment System')},
  493. {pressed = device_commands.Button_4, cockpit_device_id  = devices.ENVIRONMENT_SYSTEM, value_pressed = 1.0, name = _('Defroster Increase'), category = _('Environment System')},
  494.  
  495. {pressed = device_commands.Button_5, cockpit_device_id  = devices.ENVIRONMENT_SYSTEM, value_pressed = -1.0, name = _('Air Cold Decrease'), category = _('Environment System')},
  496. {pressed = device_commands.Button_5, cockpit_device_id  = devices.ENVIRONMENT_SYSTEM, value_pressed = 1.0, name = _('Air Cold Increase'), category = _('Environment System')},
  497.  
  498. {pressed = device_commands.Button_6, cockpit_device_id  = devices.ENVIRONMENT_SYSTEM, value_pressed = -1.0, name = _('Air Hot Decrease'), category = _('Environment System')},
  499. {pressed = device_commands.Button_6, cockpit_device_id  = devices.ENVIRONMENT_SYSTEM, value_pressed = 1.0, name = _('Air Hot Increase'), category = _('Environment System')},
  500.  
  501. {pressed = device_commands.Button_5, cockpit_device_id  = devices.LIGHT_SYSTEM, value_pressed = -1.0, name = _('Cockpit Fluorescent Light Left Decrease'), category = _('Environment System')},
  502. {pressed = device_commands.Button_5, cockpit_device_id  = devices.LIGHT_SYSTEM, value_pressed = 1.0, name = _('Cockpit Fluorescent Light Left Increase'), category = _('Environment System')},
  503. {pressed = device_commands.Button_10, cockpit_device_id  = devices.RIGHT_SWITCH_PANEL, value_pressed = -1.0, name = _('Cockpit Fluorescent Light Right Decrease'), category = _('Environment System')},
  504. {pressed = device_commands.Button_10, cockpit_device_id  = devices.RIGHT_SWITCH_PANEL, value_pressed = 1.0, name = _('Cockpit Fluorescent Light Right Increase'), category = _('Environment System')},
  505. {down = device_commands.Button_4, cockpit_device_id  = devices.LIGHT_SYSTEM, value_down = 1.0, name = _('Landing Light'), category = _('Environment System')},
  506.  
  507. --Radiator Air Controls
  508. {down = device_commands.Button_1, up = device_commands.Button_1, cockpit_device_id  = devices.ENGINE_SYSTEM, value_down = 0.1, value_up = 0.0, name = _('Radiator coolant Close'), category = _('Radiator Air Controls')},
  509. {down = device_commands.Button_9, cockpit_device_id  = devices.ENGINE_SYSTEM, value_down = 0.2, name = _('Radiator coolant Auto'), category = _('Radiator Air Controls')},
  510. {down = device_commands.Button_1, up = device_commands.Button_1, cockpit_device_id  = devices.ENGINE_SYSTEM, value_down = 0.3, value_up = 0.0, name = _('Radiator coolant Open'), category = _('Radiator Air Controls')},
  511. {down = device_commands.Button_5, cockpit_device_id  = devices.ENGINE_SYSTEM, value_down = 1.0, name = _('Radiator coolant Cover'), category = _('Radiator Air Controls')},
  512.  
  513. {down = device_commands.Button_2, up = device_commands.Button_2, cockpit_device_id  = devices.ENGINE_SYSTEM, value_down = 0.1, value_up = 0.0, name = _('Radiator oil Close'), category = _('Radiator Air Controls')},
  514. {down = device_commands.Button_10, cockpit_device_id  = devices.ENGINE_SYSTEM, value_down = 0.2, name = _('Radiator oil Auto'), category = _('Radiator Air Controls')},
  515. {down = device_commands.Button_2, up = device_commands.Button_2, cockpit_device_id  = devices.ENGINE_SYSTEM, value_down = 0.3, value_up = 0.0, name = _('Radiator oil Open'), category = _('Radiator Air Controls')},
  516. {down = device_commands.Button_6, cockpit_device_id  = devices.ENGINE_SYSTEM, value_down = 1.0, name = _('Radiator oil Cover'), category = _('Radiator Air Controls')},
  517.  
  518. --Carburetor air control
  519. {pressed = device_commands.Button_8, cockpit_device_id  = devices.ENGINE_SYSTEM, value_pressed = -1.0, name = _('Cold Air Control to UNRAMMED FILTERED'), category = _('Carburetor Air Controls')},
  520. {pressed = device_commands.Button_8, cockpit_device_id  = devices.ENGINE_SYSTEM, value_pressed = 1.0, name = _('Cold Air Control to RAM'), category = _('Carburetor Air Controls')},
  521. {pressed = device_commands.Button_28, cockpit_device_id  = devices.ENGINE_SYSTEM, value_pressed = -1.0, name = _('Warm Air Control to HOT'), category = _('Carburetor Air Controls')},
  522. {pressed = device_commands.Button_28, cockpit_device_id  = devices.ENGINE_SYSTEM, value_pressed = 1.0, name = _('Warm Air Control to NORMAL'), category = _('Carburetor Air Controls')},
  523.  
  524. --- Kneeboard
  525. {down = device_commands.Button_1, cockpit_device_id  = devices.KNEEBOARD, value_down = 1.0, name = _('Kneeboard Next Page')  , category = _('Kneeboard')},
  526. {down = device_commands.Button_2, cockpit_device_id  = devices.KNEEBOARD, value_down = 1.0, name = _('Kneeboard Previous Page'), category = _('Kneeboard')},
  527. {down = iCommandPlaneShowKneeboard, name = _('Kneeboard ON/OFF'), category = _('Kneeboard')},
  528. {down = iCommandPlaneShowKneeboard, up = iCommandPlaneShowKneeboard ,value_down = 1.0,value_up = -1.0, name = _('Kneeboard glance view')  , category = _('Kneeboard')},
  529. {down = device_commands.Button_3    , cockpit_device_id  = devices.KNEEBOARD,value_down = 1.0, name = _('Kneeboard current position mark point')  , category = _('Kneeboard')},
  530.  
  531. --Night Vision Goggles
  532. {down    = iCommandViewNightVisionGogglesOn   , name = _('Night Vision Goggles')   , category = _('Sensors')},
  533. {pressed = iCommandPlane_Helmet_Brightess_Up  , name = _('Night Vision Goggles Gain Up')  , category = _('Sensors')},
  534. {pressed = iCommandPlane_Helmet_Brightess_Down, name = _('Night Vision Goggles Gain Down'), category = _('Sensors')},
  535.  
  536.  
  537. },
  538. axisCommands = {
  539.  
  540. -- joystick axes
  541.  
  542. -- joystick axes
  543. {combos = defaultDeviceAssignmentFor("roll")    , action = iCommandPlaneRoll, name = _('Roll')},
  544. {combos = defaultDeviceAssignmentFor("pitch")   , action = iCommandPlanePitch, name = _('Pitch')},
  545. {combos = defaultDeviceAssignmentFor("rudder")  ,  action = iCommandPlaneRudder, name = _('Rudder')},
  546. {combos = defaultDeviceAssignmentFor("thrust")  ,action = device_commands.Button_25, cockpit_device_id  = devices.ENGINE_SYSTEM, name = _('Throttle')},
  547.  
  548. {action = device_commands.Button_26, cockpit_device_id  = devices.ENGINE_SYSTEM, name = _('Engine RPM Setting')},
  549.  
  550. -- TrackIR axes
  551. {action = iCommandViewVerticalAbs       , name = _('Absolute Camera Vertical View')},
  552. {action = iCommandViewHorizontalAbs     , name = _('Absolute Camera Horizontal View')},
  553. {action = iCommandViewHorTransAbs       , name = _('Absolute Horizontal Shift Camera View')},
  554. {action = iCommandViewVertTransAbs      , name = _('Absolute Vertical Shift Camera View')},
  555. {action = iCommandViewLongitudeTransAbs , name = _('Absolute Longitude Shift Camera View')},
  556. {action = iCommandViewRollAbs           , name = _('Absolute Roll Shift Camera View')},
  557. {action = iCommandViewZoomAbs           , name = _('Zoom View')},
  558.  
  559.  
  560. {action = iCommandWheelBrake,       name = _('Wheel Brake')},
  561. {action = iCommandLeftWheelBrake,   name = _('Wheel Brake Left')},
  562. {action = iCommandRightWheelBrake,  name = _('Wheel Brake Right')},
  563.  
  564. {action = iCommandPlaneTrimRudderAbs, name = _('Trim Rudder')},
  565. {action = iCommandPlaneTrimRollAbs, name = _('Trim Aileron')},
  566. {action = iCommandPlaneTrimPitchAbs, name = _('Trim Elevator')},
  567.  
  568. {action = device_commands.Button_17, cockpit_device_id  = devices.CONTROL_SYSTEM, name = _('Flaps')},
  569. {action = device_commands.Button_11, cockpit_device_id  = devices.K14_GUNSIGHT, name = _('K-14 Range to target')},
  570. {action = device_commands.Button_12, cockpit_device_id  = devices.K14_GUNSIGHT, name = _('K-14 Target span')},
  571. {action = device_commands.Button_13, cockpit_device_id  = devices.K14_GUNSIGHT, name = _('K-14 Brightness')},
  572.  
  573. {action = device_commands.Button_16, cockpit_device_id  = devices.ENGINE_SYSTEM, name = _('Throttle Control Lock')},
  574. {action = device_commands.Button_17, cockpit_device_id  = devices.ENGINE_SYSTEM, name = _('Propeller & Mixture Lock')},
  575. {action = device_commands.Button_18, cockpit_device_id  = devices.ENGINE_SYSTEM, name = _('Cold Air Control')},
  576. {action = device_commands.Button_29, cockpit_device_id  = devices.ENGINE_SYSTEM, name = _('Warm Air Control')},
  577.  
  578. {action = device_commands.Button_11, cockpit_device_id  = devices.RIGHT_SWITCH_PANEL, name = _('Right Fluorescent Light')},
  579. {action = device_commands.Button_6, cockpit_device_id  = devices.LIGHT_SYSTEM, name = _('Left Fluorescent Light')},
  580. {action = device_commands.Button_4, cockpit_device_id  = devices.FRONT_SWITCH_BOX, name = _('Cockpit Lights')},
  581.  
  582. {action = device_commands.Button_6, cockpit_device_id  = devices.TAIL_WARNING_RADAR, name = _('Tail Warning Radar Light Brightness')},
  583. {action = device_commands.Button_19, cockpit_device_id  = devices.VHF_RADIO, name = _('VHF Radio Volume')},
  584.  
  585. {action = device_commands.Button_7, cockpit_device_id  = devices.CPT_MECH, name = _('Canopy Crank')},
  586.  
  587. },
  588. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement