function layout()
return {
keyCommands = {

-- Gameplay
{down = iCommandQuit, name = 'End mission', category = 'General'},
{down = iCommandBrakeGo, name = 'Pause', category = 'General'},
--{down = iCommandActivePauseOnOff, name = 'Active Pause', category = 'General'},
{down = iCommandAccelerate, name = 'Time accelerate', category = 'General'},
{down = iCommandDecelerate, name = 'Time decelerate', category = 'General'},
{down = iCommandNoAcceleration, name = 'Time normal', category = 'General'},
{down = iCommandScoresWindowToggle, name = 'Score window', category = 'General'},

--{down = iCommandRecordCursorOnOff, name = 'Record of mouse cursor in track On/Off', category = 'General'},
--{down = iCommandSoundMicOn, name = 'Sound recording begin', category = 'General'},
--{down = iCommandSoundMicOff, name = 'Sound recording end', category = 'General'},
--{down = iCommandTrackEditReplace, name = 'Track edit replace mode', category = 'General'},
--{down = iCommandTrackEditInsert, name = 'Track edit insert mode', category = 'General'},
{down = iCommandChat, name = 'Multiplayer chat - mode All', category = 'General'},
{down = iCommandFriendlyChat, name = 'Multiplayer chat - mode Allies', category = 'General'},
{down = iCommandInfoOnOff, name = 'Info bar view toggle', category = 'General'},
--{down = iCommandRecordSubtitleOn, name = 'Subtitle recording begin', category = 'General'},
--{down = iCommandRecordSubtitleOff, name = 'Subtitle recording end', category = 'General'},
{down = iCommandRecoverHuman, name = 'Get new plane - respown', category = 'General'},
{down = iCommandPlaneShipTakeOff, name = 'Ship Take Off Position', category = 'General'},
{down = iCommandPlaneJump, name = 'Jump into other aircraft', category = 'General'},
{down = iCommandScreenShot, name = 'Screenshot', category = 'General'},
--{down = iCommandOneFrame, name = 'One frame mode', category = 'General'},
{down = iCommandGraphicsFrameRate, name = 'Frame rate counter - Service info', category = 'General'},
{down = iCommandViewCoordinatesInLinearUnits, name = 'Info bar coordinate units toogle', category = 'General'},
{down = iCommandCockpitClickModeOnOff, name = 'Mouse cursor cockpit mode', category = 'General'},
{down = iCommandSoundOnOff, name = 'Sound On/Off', category = 'General'},


--Flight Control
{down = iCommandPlaneUpStart, up = iCommandPlaneUpStop, name = 'Aircraft Down', category = 'Flight Control'},
{down = iCommandPlaneDownStart, up = iCommandPlaneDownStop, name = 'Aircraft Up', category = 'Flight Control'},
{down = iCommandPlaneLeftStart, up = iCommandPlaneLeftStop, name = 'Aircraft Bank Left', category = 'Flight Control'},
{down = iCommandPlaneRightStart, up = iCommandPlaneRightStop, name = 'Aircraft Bank Right', category = 'Flight Control'},
{down = iCommandPlaneLeftRudderStart, up = iCommandPlaneLeftRudderStop, name = 'Aircraft Rudder Left', category = 'Flight Control'},
{down = iCommandPlaneRightRudderStart, up = iCommandPlaneRightRudderStop, name = 'Aircraft Rudder Right', category = 'Flight Control'},

--{down = iCommandPlaneUp, name = 'Plane Down', category = 'Flight Control'},
--{down = iCommandPlaneDown, name = 'Plane Up', category = 'Flight Control'},
--{down = iCommandPlaneLeft, name = 'Plane Left', category = 'Flight Control'},
--{down = iCommandPlaneRight, name = 'Plane Right', category = 'Flight Control'},

{pressed = iCommandPlaneTrimUp, up = iCommandPlaneTrimStop, name = 'Trim Up', category = 'Flight Control'},
{pressed = iCommandPlaneTrimDown, up = iCommandPlaneTrimStop, name = 'Trim Down', category = 'Flight Control'},
{pressed = iCommandPlaneTrimLeft, up = iCommandPlaneTrimStop, name = 'Trim Left', category = 'Flight Control'},
{pressed = iCommandPlaneTrimRight, up = iCommandPlaneTrimStop, name = 'Trim Right', category = 'Flight Control'},
{pressed = iCommandPlaneTrimLeftRudder, up = iCommandPlaneTrimStop, name = 'Trim Left Rudder', category = 'Flight Control'},
{pressed = iCommandPlaneTrimRightRudder, up = iCommandPlaneTrimStop, name = 'Trim Right Rudder', category = 'Flight Control'},
{down = iCommandPlaneTrimCancel, name = 'Trim Reset', category = 'Flight Control'},

{pressed = iCommandPlaneAUTIncrease, name = 'Power Up', category = 'Flight Control'},
{pressed = iCommandPlaneAUTDecrease, name = 'Power Down', category = 'Flight Control'},
{down = iCommandPlaneAUTIncreaseRegime, name = 'Thrust Up', category = 'Flight Control'},
{down = iCommandPlaneAUTDecreaseRegime, name = 'Thrust Down', category = 'Flight Control'},

{pressed = iCommandPlaneAUTIncreaseLeft, name = 'Power Up Left', category = 'Flight Control'},
{pressed = iCommandPlaneAUTDecreaseLeft, name = 'Power Down Left', category = 'Flight Control'},
{down = iCommandPlaneAUTIncreaseRegimeLeft, name = 'Thrust Up Left', category = 'Flight Control'},
{down = iCommandPlaneAUTDecreaseRegimeLeft, name = 'Thrust Down Left', category = 'Flight Control'},

{pressed = iCommandPlaneAUTIncreaseRight, name = 'Power Up Right', category = 'Flight Control'},
{pressed = iCommandPlaneAUTDecreaseRight, name = 'Power Down Right', category = 'Flight Control'},
{down = iCommandPlaneAUTIncreaseRegimeRight, name = 'Thrust Up Right', category = 'Flight Control'},
{down = iCommandPlaneAUTDecreaseRegimeRight, name = 'Thrust Down Right', category = 'Flight Control'},
--{down = iCommandPlaneCobra, name = 'Execute Pugachev\'s Cobra', category = 'Flight Control'},

-- Autopilot
{down = iCommandPlaneAutopilot, name = 'Autopilot', category = 'Autopilot'},
{down = iCommandPlaneAUTOnOff, name = 'Autothrust', category = 'Autopilot'},
{down = iCommandPlaneSAUHBarometric, name = 'Autopilot - Barometric Altitude Hold \'H\'', category = 'Autopilot'},
--{down = iCommandPlaneAutopilotOverrideOn, up = iCommandPlaneAutopilotOverrideOff, name = 'Autopilot override (Su-25T)', category = 'Autopilot'},
{down = iCommandPlaneStabTangBank, name = 'Autopilot - Attitude Hold', category = 'Autopilot'},
{down = iCommandPlaneStabHbarBank, name = 'Autopilot - Altitude And Roll Hold', category = 'Autopilot'},
{down = iCommandPlaneStabHorizon,	name = 'Autopilot - Transition To Level Flight Control', category = 'Autopilot'},
{down = iCommandPlaneStabHbar, name = 'Autopilot - Barometric Altitude Hold', category = 'Autopilot'},
{down = iCommandPlaneStabHrad, name = 'Autopilot - Radar Altitude Hold', category = 'Autopilot'},
{down = iCommandPlaneRouteAutopilot, name = 'Autopilot - \'Route following\'', category = 'Autopilot'},
{down = iCommandPlaneStabCancel, name = 'Autopilot Disengage', category = 'Autopilot'},

-- Systems
{down = iCommandPlaneAirBrake, name = 'Airbrake', category = 'Systems'},
{down = iCommandPlaneAirBrakeOn, name = 'Airbrake On', category = 'Systems'},
{down = iCommandPlaneAirBrakeOff, name = 'Airbrake Off', category = 'Systems'},
{down = iCommandPlaneFuelOn, up = iCommandPlaneFuelOff, name = 'Fuel Dump', category = 'Systems'},
{down = iCommandPlaneAirRefuel, name = 'Refueling Boom', category = 'Systems'},
--{down = iCommandPlaneJettisonFuelTanks, name = 'Jettison Fuel Tanks', category = 'Systems'},
{down = iCommandPlaneWingtipSmokeOnOff, name = 'Smoke', category = 'Systems'},
--{down = iCommandPowerOnOff, name = 'Electric Power Switch', category = 'Systems'},
{down = iCommandPlaneCockpitIllumination, name = 'Illumination Cockpit', category = 'Systems'},
{down = iCommandPlaneLightsOnOff, name = 'Navigation lights', category = 'Systems'},
{down = iCommandPlaneHeadLightOnOff, name = 'Gear Light Near/Far/Off', category = 'Systems'},
{down = iCommandPlaneFlaps, name = 'Flaps Up/Down', category = 'Systems'},
{down = iCommandPlaneFlapsOn, name = 'Flaps Landing Position', category = 'Systems'},
{down = iCommandPlaneFlapsOff, name = 'Flaps Up', category = 'Systems'},
{down = iCommandPlaneGear, name = 'Landing Gear Up/Down', category = 'Systems'},
{down = iCommandPlaneGearUp, name = 'Landing Gear Up', category = 'Systems'},
{down = iCommandPlaneGearDown, name = 'Landing Gear Down', category = 'Systems'},
{down = iCommandPlaneWheelBrakeOn, up = iCommandPlaneWheelBrakeOff, name = 'Wheel Brake On', category = 'Systems'},
{down = iCommandPlaneHook, name = 'Tail Hook', category = 'Systems'},
{down = iCommandPlanePackWing, name = 'Folding Wings', category = 'Systems'},
{down = iCommandPlaneFonar, name = 'Canopy Open/Close', category = 'Systems'},
-- {down = iCommandPlaneParachute, name = 'Dragging Chute', category = 'Systems'},
{down = iCommandPlaneResetMasterWarning, name = 'Audible Warning Reset', category = 'Systems'},
{down = iCommandPlaneJettisonWeapons, name = 'Weapons Jettison', category = 'Systems'},
{down = iCommandPlaneEject, name = 'Eject (3 times)', category = 'Systems'},
{down = iCommandFlightClockReset, name = 'Flight Clock Start/Stop/Reset', category = 'Systems'},
--{pressed = iCommandAltimeterPressureIncrease,	up = iCommandAltimeterPressureStop, name = 'Altimeter Pressure Increase Su-25T', category = 'Systems'},
--{pressed = iCommandAltimeterPressureDecrease, up = iCommandAltimeterPressureStop, name = 'Altimeter Pressure Decrease Su-25T', category = 'Systems'},
{down = iCommandEnginesStart, name = 'Engines Start', category = 'Systems'},
{down = iCommandEnginesStop, name = 'Engines Stop', category = 'Systems'},
{down = iCommandLeftEngineStart, name = 'Engine Left Start', category = 'Systems'},
{down = iCommandLeftEngineStop, name = 'Engine Left Stop', category = 'Systems'},
{down = iCommandRightEngineStart, name = 'Engine Right Start', category = 'Systems'},
{down = iCommandRightEngineStop, name = 'Engine Right Stop', category = 'Systems'},
{down = iCommandBrightnessILS, name = 'HUD Color', category = 'Systems'},

-- Modes
{down = iCommandPlaneChangeTarget, name = '(`) Next Waypoint, Airfield Or Target', category = 'Modes'},
{down = iCommandPlaneModeNAV, name = '(1) Navigation Modes', category = 'Modes'},
{down = iCommandPlaneModeBVR, name = '(2) Beyond Visual Range Mode', category = 'Modes'},
{down = iCommandPlaneModeVS, name = '(3) Close Air Combat Vertical Scan Mode', category = 'Modes'},
{down = iCommandPlaneModeBore, name = '(4) Close Air Combat Bore Mode', category = 'Modes'},
{down = iCommandPlaneModeHelmet, name = '(5) Close Air Combat HMD Helmet Mode', category = 'Modes'},
{down = iCommandPlaneModeFI0, name = '(6) Longitudinal Missile Aiming Mode', category = 'Modes'},
{down = iCommandPlaneModeGround, name = '(7) Air-To-Ground Mode', category = 'Modes'},
{down = iCommandPlaneModeGrid, name = '(8) Gunsight Reticle Switch', category = 'Modes'},

-- Sensors
{down = iCommandPlaneChangeLock, name = 'Target Lock', category = 'Sensors'},
{down = iCommandRefusalTWS, name = 'Target Unlock', category = 'Sensors'},
{down = iCommandPlaneRadarOnOff, name = 'Radar On/Off', category = 'Sensors'},
{down = iCommandPlaneRadarChangeMode, name = 'Radar RWS/TWS Mode Select', category = 'Sensors'},
{down = iCommandPlaneRadarCenter, name = 'Target Designator To Center', category = 'Sensors'},
{down = iCommandPlaneChangeRadarPRF, name = 'Radar Pulse Repeat Frequency Select', category = 'Sensors'},
{down = iCommandPlaneEOSOnOff, name = 'Electro-Optical System On/Off', category = 'Sensors'},
--{down = iCommandPlaneLaserRangerOnOff, name = 'Laser Ranger On/Off', category = 'Sensors'},
--{down = iCommandPlaneNightTVOnOff, name = 'Night Vision (FLIR or LLTV) On/Off', category = 'Sensors'},
{pressed = iCommandPlaneRadarUp, up = iCommandPlaneRadarStop, name = 'Target Designator Up', category = 'Sensors'},
{pressed = iCommandPlaneRadarDown, up = iCommandPlaneRadarStop, name = 'Target Designator Down', category = 'Sensors'},
{pressed = iCommandPlaneRadarLeft, up = iCommandPlaneRadarStop, name = 'Target Designator Left', category = 'Sensors'},
{pressed = iCommandPlaneRadarRight, up = iCommandPlaneRadarStop, name = 'Target Designator Right', category = 'Sensors'},
{pressed = iCommandSelecterUp, up = iCommandSelecterStop, name = 'Scan Zone Up', category = 'Sensors'},
{pressed = iCommandSelecterDown, up = iCommandSelecterStop, name = 'Scan Zone Down', category = 'Sensors'},
{pressed = iCommandSelecterLeft, up = iCommandSelecterStop, name = 'Scan Zone Left', category = 'Sensors'},
{pressed = iCommandSelecterRight, up = iCommandSelecterStop, name = 'Scan Zone Right', category = 'Sensors'},
{down = iCommandPlaneZoomIn, name = 'Display Zoom In', category = 'Sensors'},
{down = iCommandPlaneZoomOut, name = 'Display Zoom Out', category = 'Sensors'},
{down = iCommandPlaneLaunchPermissionOverride, name = 'Launch Permission Override', category = 'Sensors'},
{down = iCommandDecreaseRadarScanArea, name = 'Radar Scan Zone Decrease', category = 'Sensors'},
{down = iCommandIncreaseRadarScanArea, name = 'Radar Scan Zone Increase', category = 'Sensors'},
{pressed = iCommandPlaneIncreaseBase_Distance, up = iCommandPlaneStopBase_Distance, name = 'Target Specified Size Increase', category = 'Sensors'},
{pressed = iCommandPlaneDecreaseBase_Distance, up = iCommandPlaneStopBase_Distance, name = 'Target Specified Size Decrease', category = 'Sensors'},
{down = iCommandChangeRWRMode, name = 'RWR/SPO Mode Select', category = 'Sensors'},
{down = iCommandPlaneThreatWarnSoundVolumeDown, name = 'RWR/SPO Sound Signals Volume Down', category = 'Sensors'},
{down = iCommandPlaneThreatWarnSoundVolumeUp, name = 'RWR/SPO Sound Signals Volume Up', category = 'Sensors'},

-- Weapons                                                                        
--{combos = {{key = 'MOUSE_BTN1'}}, down = iCommandPlaneFire, up = iCommandPlaneFireOff, name = 'Weapon Fire', category = 'Weapons'},
--{combos = {{key = 'MOUSE_BTN4'}}, down = iCommandPlaneChangeWeapon, name = 'Weapon Change', category = 'Weapons'},
{down = iCommandPlaneFire, up = iCommandPlaneFireOff, name = 'Weapon Fire', category = 'Weapons'},
{down = iCommandPlaneChangeWeapon, name = 'Weapon Change', category = 'Weapons'},
{down = iCommandPlaneModeCannon, name = 'Cannon', category = 'Weapons'},
{down = iCommandPlaneSalvoOnOff, name = 'Salvo Mode', category = 'Weapons'},
--{combos = {{key = 'MOUSE_BTN2'}}, down = iCommandPlanePickleOn,	up = iCommandPlanePickleOff, name = 'Weapon Release', category = 'Weapons'},
-- {down = iCommandPlanePickleOn,	up = iCommandPlanePickleOff, name = 'Weapon Release', category = 'Weapons'},
{down = iCommandChangeGunRateOfFire, name = 'Cut Of Burst select', category = 'Weapons'},
--{down = iCommandChangeRippleQuantity, name = 'Ripple Quantity Select', category = 'Weapons'},
--{down = iCommandChangeRippleInterval, name = 'Ripple Interval Increase', category = 'Weapons'},
--{down = iCommandChangeRippleIntervalDown, name = 'Ripple Interval Decrease', category = 'Weapons'},
--{down = iCommandChangeReleaseMode, name = 'PRS/SGL Release Submodes Cycle (A10)', category = 'Weapons'},

-- Countermeasures
{down = iCommandPlaneDropSnar, name = 'Countermeasures Continuously Dispense', category = 'Countermeasures'},
{down = iCommandPlaneDropSnarOnce, up = iCommandPlaneDropSnarOnceOff, name = 'Countermeasures Release', category = 'Countermeasures'},
{down = iCommandPlaneDropFlareOnce, name = 'Countermeasures Flares Dispense', category = 'Countermeasures'},
{down = iCommandPlaneDropChaffOnce, name = 'Countermeasures Chaff Dispense', category = 'Countermeasures'},
{down = iCommandActiveJamming, name = 'ECM', category = 'Countermeasures'},
--{down = iCommandActiveIRJamming, name = 'IR Jamming', category = 'Countermeasures'},

-- Communications
{down = iCommandPlaneDoAndHome, name = 'Flight - Complete mission and RTB', category = 'Radio Communications'},
{down = iCommandPlaneDoAndBack, name = 'Flight - Complete mission and rejoin', category = 'Radio Communications'},
{down = iCommandPlaneFormation, name = 'Toggle Formation', category = 'Radio Communications'},
{down = iCommandPlaneJoinUp, name = 'Join Up Formation', category = 'Radio Communications'},
{down = iCommandPlaneAttackMyTarget, name = 'Attack My Target', category = 'Radio Communications'},
{down = iCommandPlaneCoverMySix, name = 'Cover Me', category = 'Radio Communications'},
{down = iCommandAWACSHomeBearing, name = 'Request AWACS Home Airbase', category = 'Radio Communications'},
{down = iCommandAWACSTankerBearing, name = 'Request AWACS Available Tanker', category = 'Radio Communications'},
{down = iCommandPlane_EngageGroundTargets, name = 'Flight - Attack ground targets', category = 'Radio Communications'},
{down = iCommandPlane_EngageAirDefenses, name = 'Flight - Attack air defenses', category = 'Radio Communications'},
{down = iCommandPlaneWingmenCommand, name = 'Communication menu', category = 'Radio Communications'},

-- View                                                    
{pressed = iCommandViewLeftSlow, up = iCommandViewStopSlow, name = 'View Left slow', category = 'View'},
{pressed = iCommandViewRightSlow, up = iCommandViewStopSlow, name = 'View Right slow', category = 'View'},
{pressed = iCommandViewUpSlow, up = iCommandViewStopSlow, name = 'View Up slow', category = 'View'},
{pressed = iCommandViewDownSlow, up = iCommandViewStopSlow, name = 'View Down slow', category = 'View'},
{pressed = iCommandViewUpRightSlow, up = iCommandViewStopSlow, name = 'View Up Right slow', category = 'View'},
{pressed = iCommandViewDownRightSlow, up = iCommandViewStopSlow, name = 'View Down Right slow', category = 'View'},
{pressed = iCommandViewDownLeftSlow, up = iCommandViewStopSlow, name = 'View Down Left slow', category = 'View'},
{pressed = iCommandViewUpLeftSlow, up = iCommandViewStopSlow, name = 'View Up Left slow', category = 'View'},
{pressed = iCommandViewCenter, name = 'View Center', category = 'View'},


{pressed = iCommandViewForwardSlow, up = iCommandViewForwardSlowStop, name = 'Zoom in slow', category = 'View'},
{pressed = iCommandViewBackSlow, up = iCommandViewBackSlowStop, name = 'Zoom out slow', category = 'View'},
{down = iCommandViewAngleDefault, name = 'Zoom normal', category = 'View'},
{pressed = iCommandViewExternalZoomIn, up = iCommandViewExternalZoomInStop, name = 'Zoom external in', category = 'View'},
{pressed = iCommandViewExternalZoomOut, up = iCommandViewExternalZoomOutStop, name = 'Zoom external out', category = 'View'},
{down = iCommandViewExternalZoomDefault, name = 'Zoom external normal', category = 'View'},
{down = iCommandViewSpeedUp, name = 'F11 Camera moving forward', category = 'View'},
{down = iCommandViewSlowDown, name = 'F11 Camera moving backward', category = 'View'},


{down = iCommandViewCockpit, name = 'F1 Cockpit view', category = 'View'},
{down = iCommandNaturalViewCockpitIn, name = 'F1 Natural head movement view', category = 'View'},
{down = iCommandViewHUDOnlyOnOff, name = 'F1 HUD only view switch', category = 'View'},
{down = iCommandViewAir, name = 'F2 Aircraft view', category = 'View'},
{down = iCommandViewMe, name = 'F2 View own aircraft', category = 'View'},
{down = iCommandViewFromTo, name = 'F2 Toggle camera position', category = 'View'},
{down = iCommandViewLocal, name = 'F2 Toggle local camera control', category = 'View'},
{down = iCommandViewTower, name = 'F3 Fly-By view', category = 'View'},
{down = iCommandViewTowerJump, name = 'F3 Fly-By jump view', category = 'View'},
{down = iCommandViewRear, name = 'F4 Look back view', category = 'View'},
{down = iCommandViewChase, name = 'F4 Chase view', category = 'View'},
{down = iCommandViewFight, name = 'F5 nearest AC view', category = 'View'},
{down = iCommandViewFightGround, name = 'F5 Ground hostile view', category = 'View'},
{down = iCommandViewWeapons, name = 'F6 Released weapon view', category = 'View'},
{down = iCommandViewWeaponAndTarget, name = 'F6 Weapon to target view', category = 'View'},
{down = iCommandViewGround, name = 'F7 Ground unit view', category = 'View'},
{down = iCommandViewTargets, name = 'F8 Target view', category = 'View'},
{down = iCommandViewTargetType, name = 'F8 Player targets/All targets filter', category = 'View'},
{down = iCommandViewNavy, name = 'F9 Ship view', category = 'View'},
{down = iCommandViewLndgOfficer, name = 'F9 Landing signal officer view', category = 'View'},
{down = iCommandViewAWACS, name = 'F10 Theater map view', category = 'View'},
{down = iCommandViewAWACSJump, name = 'F10 Jump to theater map view over current point', category = 'View'},
{down = iCommandViewFree, name = 'F11 Airport free camera', category = 'View'},
{down = iCommandViewFreeJump, name = 'F11 Jump to free camera', category = 'View'},
{down = iCommandViewStatic, name = 'F12 Static object view', category = 'View'},
{down = iCommandViewMirage, name = 'F12 Civil traffic view', category = 'View'},
{down = iCommandViewLocomotivesToggle, name = 'F12 Trains/cars toggle', category = 'View'},
{down = iCommandViewPitHeadOnOff, name = 'F1 Head shift movement on / off', category = 'View'},

{down = iCommandViewFastKeyboard, name = 'Keyboard Rate Fast', category = 'View'},
{down = iCommandViewSlowKeyboard, name = 'Keyboard Rate Slow', category = 'View'},
{down = iCommandViewNormalKeyboard, name = 'Keyboard Rate Normal', category = 'View'},
{down =  iCommandViewFastMouse, name = 'Mouse Rate Fast', category = 'View'},
{down = iCommandViewSlowMouse, name = 'Mouse Rate Slow', category = 'View'},
{down = iCommandViewNormalMouse, name = 'Mouse Rate Normal', category = 'View'},

-- Cockpit view

{down = iCommandViewTempCockpitOn, up = iCommandViewTempCockpitOff, name = 'Cockpit panel view in', category = 'View Cockpit'},
{down = iCommandViewTempCockpitToggle, name = 'Cockpit panel view toggle', category = 'View Cockpit'},
--// Save current cockpit camera angles for fast numpad jumps  
{down = iCommandViewSaveAngles, name = 'Save Cockpit Angles', category = 'View Cockpit'},
{pressed = iCommandViewUp, up = iCommandViewStop, name = 'View up', category = 'View Cockpit'},
{pressed = iCommandViewDown, up = iCommandViewStop, name = 'View down', category = 'View Cockpit'},
{pressed = iCommandViewLeft, up = iCommandViewStop, name = 'View left', category = 'View Cockpit'},
{pressed = iCommandViewRight, up = iCommandViewStop, name = 'View right', category = 'View Cockpit'},
{pressed = iCommandViewUpRight, up = iCommandViewStop, name = 'View up right', category = 'View Cockpit'},
{pressed = iCommandViewDownRight, up = iCommandViewStop, name = 'View down right', category = 'View Cockpit'},
{pressed = iCommandViewDownLeft, up = iCommandViewStop, name = 'View down left', category = 'View Cockpit'},
{pressed = iCommandViewUpLeft, up = iCommandViewStop, name = 'View up left', category = 'View Cockpit'},


-- Cockpit Camera Motion (Передвижение камеры в кабине)
{pressed = iCommandViewPitCameraMoveUp, up = iCommandViewPitCameraMoveStop, name = 'Cockpit Camera Move Up', category = 'View Cockpit'},
{pressed = iCommandViewPitCameraMoveDown, up = iCommandViewPitCameraMoveStop, name = 'Cockpit Camera Move Down', category = 'View Cockpit'},
{pressed = iCommandViewPitCameraMoveLeft, up = iCommandViewPitCameraMoveStop, name = 'Cockpit Camera Move Left', category = 'View Cockpit'},
{pressed = iCommandViewPitCameraMoveRight, up = iCommandViewPitCameraMoveStop, name = 'Cockpit Camera Move Right', category = 'View Cockpit'},
{pressed = iCommandViewPitCameraMoveForward, up = iCommandViewPitCameraMoveStop, name = 'Cockpit Camera Move Forward', category = 'View Cockpit'},
{pressed = iCommandViewPitCameraMoveBack, up = iCommandViewPitCameraMoveStop, name = 'Cockpit Camera Move Back', category = 'View Cockpit'},
{down = iCommandViewPitCameraMoveCenter, name = 'Cockpit Camera Move Center', category = 'View Cockpit'},


{down = iCommandViewCameraUp, up = iCommandViewCameraCenter, name = 'Glance up', category = 'View Cockpit'},
{down = iCommandViewCameraDown, up = iCommandViewCameraCenter, name = 'Glance down', category = 'View Cockpit'},
{down = iCommandViewCameraLeft, up = iCommandViewCameraCenter, name = 'Glance left', category = 'View Cockpit'},
{down = iCommandViewCameraRight, up = iCommandViewCameraCenter, name = 'Glance right', category = 'View Cockpit'},
{down = iCommandViewCameraUpLeft, up = iCommandViewCameraCenter, name = 'Glance up-left', category = 'View Cockpit'},
{down = iCommandViewCameraDownLeft, up = iCommandViewCameraCenter, name = 'Glance down-left', category = 'View Cockpit'},
{down = iCommandViewCameraUpRight, up = iCommandViewCameraCenter, name = 'Glance up-right', category = 'View Cockpit'},
{down = iCommandViewCameraDownRight, up = iCommandViewCameraCenter, name = 'Glance down-right', category = 'View Cockpit'},
{down = iCommandViewPanToggle, name = 'Camera pan mode toggle', category = 'View Cockpit'},

{down = iCommandViewCameraUpSlow, name = 'Camera snap view up', category = 'View Cockpit'},
{down = iCommandViewCameraDownSlow, name = 'Camera snap view down', category = 'View Cockpit'},
{down = iCommandViewCameraLeftSlow, name = 'Camera snap view left', category = 'View Cockpit'},
{down = iCommandViewCameraRightSlow, name = 'Camera snap view right', category = 'View Cockpit'},
{down = iCommandViewCameraUpLeftSlow, name = 'Camera snap view up-left', category = 'View Cockpit'},
{down = iCommandViewCameraDownLeftSlow, name = 'Camera snap view down-left', category = 'View Cockpit'},
{down = iCommandViewCameraUpRightSlow, name = 'Camera snap view up-right', category = 'View Cockpit'},
{down = iCommandViewCameraDownRightSlow, name = 'Camera snap view down-right', category = 'View Cockpit'},
{down = iCommandViewCameraCenter, name = 'Center Camera View', category = 'View Cockpit'},
{down = iCommandViewCameraReturn, name = 'Return Camera', category = 'View Cockpit'},
{down = iCommandViewCameraBaseReturn, name = 'Return Camera Base', category = 'View Cockpit'},

{down = iCommandViewSnapView0,	up = iCommandViewSnapViewStop, name = 'Custom Snap View  0', category = 'View Cockpit'},
{down = iCommandViewSnapView1,	up = iCommandViewSnapViewStop, name = 'Custom Snap View  1', category = 'View Cockpit'},
{down = iCommandViewSnapView2,	up = iCommandViewSnapViewStop, name = 'Custom Snap View  2', category = 'View Cockpit'},
{down = iCommandViewSnapView3,	up = iCommandViewSnapViewStop, name = 'Custom Snap View  3', category = 'View Cockpit'},
{down = iCommandViewSnapView4,	up = iCommandViewSnapViewStop, name = 'Custom Snap View  4', category = 'View Cockpit'},
{down = iCommandViewSnapView5,	up = iCommandViewSnapViewStop, name = 'Custom Snap View  5', category = 'View Cockpit'},
{down = iCommandViewSnapView6,	up = iCommandViewSnapViewStop, name = 'Custom Snap View  6', category = 'View Cockpit'},
{down = iCommandViewSnapView7,	up = iCommandViewSnapViewStop, name = 'Custom Snap View  7', category = 'View Cockpit'},
{down = iCommandViewSnapView8,	up = iCommandViewSnapViewStop, name = 'Custom Snap View  8', category = 'View Cockpit'},
{down = iCommandViewSnapView9,	up = iCommandViewSnapViewStop, name = 'Custom Snap View  9', category = 'View Cockpit'},

{down = iCommandViewLeftMirrorOn ,	up = iCommandViewLeftMirrorOff , name = 'Mirror Left On', category = 'View Cockpit'},
{down = iCommandViewRightMirrorOn,	up = iCommandViewRightMirrorOff, name = 'Mirror Right On', category = 'View Cockpit'},

{pressed = iCommandViewForward, up = iCommandViewForwardStop, name = 'Zoom in', category = 'View Cockpit'},
{pressed = iCommandViewBack, up = iCommandViewBackStop, name = 'Zoom out', category = 'View Cockpit'},


-- Extended view
{down = iCommandViewCameraJiggle, name = 'Camera jiggle toggle', category = 'View Extended'},
{down = iCommandViewKeepTerrain, name = 'Keep terrain camera altitude', category = 'View Extended'},
{down = iCommandViewFriends, name = 'View friends mode', category = 'View Extended'},
{down = iCommandViewEnemies, name = 'View enemies mode', category = 'View Extended'},
{down = iCommandViewAll, name = 'View all mode', category = 'View Extended'},
{down = iCommandViewPlus, name = 'Toggle tracking fire weapon', category = 'View Extended'},
{down = iCommandViewSwitchForward, name = 'Objects switching direction forward ', category = 'View Extended'},
{down = iCommandViewSwitchReverse, name = 'Objects switching direction reverse ', category = 'View Extended'},
{down = iCommandViewObjectIgnore, name = 'Object exclude ', category = 'View Extended'},
{down = iCommandViewObjectsAll, name = 'Objects all excluded - include', category = 'View Extended'},

-- Padlock
{down = iCommandViewLock, name = 'Lock View (cycle padlock)', category = 'View Padlock'},
{down = iCommandViewUnlock, name = 'Unlock view (stop padlock)', category = 'View Padlock'},
{down = iCommandAllMissilePadlock, name = 'All missiles padlock', category = 'View Padlock'},
{down = iCommandThreatMissilePadlock, name = 'Threat missile padlock', category = 'View Padlock'},
{down = iCommandViewTerrainLock, name = 'Lock terrain view', category = 'View Padlock'},

-- Labels
{down = iCommandMarkerState, name = 'All Labels', category = 'Labels'},
{down = iCommandMarkerStatePlane, name = 'Aircraft Labels', category = 'Labels'},
{down = iCommandMarkerStateRocket, name = 'Missile Labels', category = 'Labels'},
{down = iCommandMarkerStateShip, name = 'Vehicle & Ship Labels', category = 'Labels'},


-- Auto Lock On
{down = iCommandAutoLockOnNearestAircraft, name = 'Auto lock on nearest aircraft', category = 'Simplifications'},
{down = iCommandAutoLockOnCenterAircraft, name = 'Auto lock on center aircraft', category = 'Simplifications'},
{down = iCommandAutoLockOnNextAircraft, name = 'Auto lock on next aircraft', category = 'Simplifications'},
{down = iCommandAutoLockOnPreviousAircraft, name = 'Auto lock on previous aircraft', category = 'Simplifications'},
{down = iCommandAutoLockOnNearestSurfaceTarget, name = 'Auto lock on nearest surface target', category = 'Simplifications'},
{down = iCommandAutoLockOnCenterSurfaceTarget, name = 'Auto lock on center surface target', category = 'Simplifications'},
{down = iCommandAutoLockOnNextSurfaceTarget, name = 'Auto lock on next surface target', category = 'Simplifications'},
{down = iCommandAutoLockOnPreviousSurfaceTarget, name = 'Auto lock on previous surface target', category = 'Simplifications'},

},
--mouse axes
axisCommands = {

{action = iCommandPlaneRollDelta			, name = 'Roll'},
{action = iCommandPlanePitchDelta			, name = 'Pitch'},
{action = iCommandPlaneRudderDelta			, name = 'Rudder'},
{action = iCommandPlaneThrustCommonDelta	, name = 'Thrust'},
{action = iCommandPlaneThrustLeftDelta		, name = 'Thrust Left'},
{action = iCommandPlaneThrustRightDelta		, name = 'Thrust Right'},
{action = iCommandPlaneTrimPitch			, name = 'Trim Pitch'},
{action = iCommandPlaneTrimRoll				, name = 'Trim Roll'},
{action = iCommandPlaneTrimRudder			, name = 'Trim Rudder'},

{combos = {{key = 'MOUSE_X'}}, action = iCommandPlaneViewHorizontal, name = 'Horizontal View'},
{combos = {{key = 'MOUSE_Y'}}, action = iCommandPlaneViewVertical, name = 'Vertical View'},
{combos = {{key = 'MOUSE_Z'}}, action = iCommandPlaneZoomView, name = 'Zoom View'},
{action = iCommandViewRoll 				, name = 'Cockpit camera roll'},
{action = iCommandViewHorTrans 			, name = 'Cockpit camera move lateral'},
{action = iCommandViewVertTrans 		, name = 'Cockpit camera move vertical'},
{action = iCommandViewLongitudeTrans 	, name = 'Cockpit camera move forward/backward'},

{action = iCommandPlaneSelecterHorizontal	, name = 'TDC Slew Horizontal'},
{action = iCommandPlaneSelecterVertical		, name = 'TDC Slew Vertical'},
{action = iCommandPlaneRadarHorizontal		, name = 'Radar Horizontal'},
{action = iCommandPlaneRadarVertical		, name = 'Radar Vertical'},

{action = iCommandPlaneMFDZoom 				, name = 'MFD Range'},
{action = iCommandPlaneBase_Distance 		, name = 'Base/Distance'},
},
}
end
