function layout()
	dofile("Mods/aircrafts/P-51D/Cockpit/Scripts/devices.lua")
	dofile("Mods/aircrafts/P-51D/Cockpit/Scripts/command_defs.lua")
return {

forceFeedback = {
trimmer = 1.0,
shake = 0.5,
swapAxes = false,
},

keyCommands = {

-- Temporary
--{down = iCommandViewExplosion, name = 'Explosion', category = 'Cheat'},

{down = iCommandEnginesStart, name = 'Start Procedure', category = 'Cheat'},
{down = iCommandEnginesStop, name = 'Stop Procedure', category = 'Cheat'},
--{down = iCommandReloadTables, name = 'Reload Cockpit', category = 'Debug'},


-- Gameplay
{down = iCommandActivePauseOnOff, name = 'Pause Active', category = 'General'},
{down = iCommandQuit, name = 'Exit mission', category = 'General'},
{down = iCommandViewBriefing, name = 'Briefing window', category = 'General'},
{down = iCommandPlaneJump, name = 'Jump into selected aircraft', category = 'General'},
{down = iCommandBrakeGo, name = '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 = iCommandDebriefing, name = 'Show debriefing window', category = 'General'},
{down = iCommandChat, name = 'Multiplayer chat - mode All', category = 'General'},
{down = iCommandFriendlyChat, name = 'Multiplayer chat - mode Allies', category = 'General'},
{down = iCommandRecoverHuman, name = 'Get new plane - respawn', category = 'General'},
{down = iCommandScreenShot, name = 'Screenshot', category = 'General'},
{down = iCommandTrkEsc, name = 'Playback track cancel', category = 'General'},
{down = iCommandInfoOnOff, name = 'Info bar view toggle', category = 'General'},
{down = iCommandOneFrame, name = 'One frame mode', category = 'General'},
{down = iCommandGraphicsFrameRate, name = 'Frame rate counter - Service info', category = 'General'},
{down = iCommandViewCoordinatesInLinearUnits, name = 'Coordinates units change', category = 'General'},
{down = iCommandCockpitClickModeOnOff, name = 'Clickable mouse cockpit mode On/Off', category = 'General'},
{down = iCommandPlane_ShowControls, name = 'Controls indicator' , category = 'General'},
{down = iCommandCockpitShowPilotOnOff, name = 'Show pilot', category = 'General'},
{down = iCommandMissionResourcesManagement, name = 'Rearming and Refueling Window', category = 'General'},


-- Communications
{down = iCommandPlaneDoAndHome, name = 'COMM Dispatch wingmans - complete mission and RTB (easy communication only)', category = 'Communications'},
{down = iCommandPlaneDoAndBack, name = 'COMM Dispatch wingmans - complete mission and rejoin (easy communication only)', category = 'Communications'},
{down = iCommandPlaneFormation, name = 'COMM Toggle formation (easy communication only)', category = 'Communications'},
{down = iCommandPlaneJoinUp, name = 'COMM Join up formation (easy communication only)', category = 'Communications'},
{down = iCommandPlaneAttackMyTarget, name = 'COMM Attack my target (easy communication only)', category = 'Communications'},
{down = iCommandPlaneCoverMySix, name = 'COMM Cover me (easy communication only)', category = 'Communications'},
{down = iCommandAWACSHomeBearing, name = 'COMM Ask AWACS home airbase (easy communication only)', category = 'Communications'},
{down = iCommandPlane_EngageGroundTargets, name = 'COMM Attack Ground Targets (easy communication only)', category = 'Communications'},
{down = iCommandPlane_EngageAirDefenses, name = 'COMM Attack Air Defenses (easy communication only)', category = 'Communications'},
{down = iCommandToggleCommandMenu, name = 'COMM Communication menu', category = 'Communications'},
{down = ICommandSwitchDialog, name = 'COMM Switch dialog', category = 'Communications'},
{down = ICommandSwitchToCommonDialog, name = 'COMM Switch to main menu', category = 'Communications'},
{down = iCommandPlane_P_51_PTT_on, up = iCommandPlane_P_51_PTT_off, name = 'COMM Push to talk', category = 'Communications'},

-- View                                                    
{combos = {{key = 'JOY_BTN_POV1_L'}}, pressed = iCommandViewLeftSlow, up = iCommandViewStopSlow, name = 'View Left slow', category = 'View'},
{combos = {{key = 'JOY_BTN_POV1_R'}}, pressed = iCommandViewRightSlow, up = iCommandViewStopSlow, name = 'View Right slow', category = 'View'},
{combos = {{key = 'JOY_BTN_POV1_U'}}, pressed = iCommandViewUpSlow, up = iCommandViewStopSlow, name = 'View Up slow', category = 'View'},
{combos = {{key = 'JOY_BTN_POV1_D'}}, pressed = iCommandViewDownSlow, up = iCommandViewStopSlow, name = 'View Down slow', category = 'View'},
{combos = {{key = 'JOY_BTN_POV1_UR'}}, pressed = iCommandViewUpRightSlow, up = iCommandViewStopSlow, name = 'View Up Right slow', category = 'View'},
{combos = {{key = 'JOY_BTN_POV1_DR'}}, pressed = iCommandViewDownRightSlow, up = iCommandViewStopSlow, name = 'View Down Right slow', category = 'View'},
{combos = {{key = 'JOY_BTN_POV1_DL'}}, pressed = iCommandViewDownLeftSlow, up = iCommandViewStopSlow, name = 'View Down Left slow', category = 'View'},
{combos = {{key = 'JOY_BTN_POV1_UL'}}, pressed = iCommandViewUpLeftSlow, up = iCommandViewStopSlow, name = 'View Up Left slow', category = 'View'},
{combos = {{key = 'JOY_BTN5'}}, 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 = iCommandViewChaseArcade, name = 'F4 Arcade 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 = iCommandViewJFO, name = 'F7 Ground JFO/JTAC view', 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 = 'Camera view keyboard rate fast', category = 'View'},
{down = iCommandViewSlowKeyboard, name = 'Camera view keyboard rate slow', category = 'View'},
{down = iCommandViewNormalKeyboard, name = 'Camera view keyboard rate normal', category = 'View'},
{down = iCommandViewFastMouse, name = 'Camera view mouse rate fast', category = 'View'},
{down = iCommandViewSlowMouse, name = 'Camera view mouse rate slow', category = 'View'},
{down = iCommandViewNormalMouse, name = 'Camera view 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'},
{down = iCommandViewSaveAngles, name = 'Save Cockpit Angles', category = 'View Cockpit'}, -- Save current cockpit camera angles for fast numpad jumps  
{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'},
{down = iCommandViewCameraUp, up = iCommandViewCameraCenter, name = 'Camera view up', category = 'View Cockpit'},
{down = iCommandViewCameraDown, up = iCommandViewCameraCenter, name = 'Camera view down', category = 'View Cockpit'},
{down = iCommandViewCameraLeft, up = iCommandViewCameraCenter, name = 'Camera view left', category = 'View Cockpit'},
{down = iCommandViewCameraRight, up = iCommandViewCameraCenter, name = 'Camera view right', category = 'View Cockpit'},
{down = iCommandViewCameraUpLeft, up = iCommandViewCameraCenter, name = 'Camera view up-left', category = 'View Cockpit'},
{down = iCommandViewCameraDownLeft, up = iCommandViewCameraCenter, name = 'Camera view down-left', category = 'View Cockpit'},
{down = iCommandViewCameraUpRight, up = iCommandViewCameraCenter, name = 'Camera view up-right', category = 'View Cockpit'},
{down = iCommandViewCameraDownRight, up = iCommandViewCameraCenter, name = 'Camera view down-right', category = 'View Cockpit'},

{down = iCommandViewCameraUpSlow, name = 'Camera view up slow', category = 'View Cockpit'},
{down = iCommandViewCameraDownSlow, name = 'Camera view down slow', category = 'View Cockpit'},
{down = iCommandViewCameraLeftSlow, name = 'Camera view left slow', category = 'View Cockpit'},
{down = iCommandViewCameraRightSlow, name = 'Camera view right slow', category = 'View Cockpit'},
{down = iCommandViewCameraUpLeftSlow, name = 'Camera view up-left slow', category = 'View Cockpit'},
{down = iCommandViewCameraDownLeftSlow, name = 'Camera view down-left slow', category = 'View Cockpit'},
{down = iCommandViewCameraDownRight, name = 'Camera view down-right slow', category = 'View Cockpit'},
{down = iCommandViewCameraUpRightSlow, name = 'Camera view up-right slow', 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 = 'Snap View 0', category = 'View Cockpit'},
{down = iCommandViewSnapView1,	up = iCommandViewSnapViewStop, name = 'Snap View 1', category = 'View Cockpit'},
{down = iCommandViewSnapView2,	up = iCommandViewSnapViewStop, name = 'Snap View 2', category = 'View Cockpit'},
{down = iCommandViewSnapView3,	up = iCommandViewSnapViewStop, name = 'Snap View 3', category = 'View Cockpit'},
{down = iCommandViewSnapView4,	up = iCommandViewSnapViewStop, name = 'Snap View 4', category = 'View Cockpit'},
{down = iCommandViewSnapView5,	up = iCommandViewSnapViewStop, name = 'Snap View 5', category = 'View Cockpit'},
{down = iCommandViewSnapView6,	up = iCommandViewSnapViewStop, name = 'Snap View 6', category = 'View Cockpit'},
{down = iCommandViewSnapView7,	up = iCommandViewSnapViewStop, name = 'Snap View 7', category = 'View Cockpit'},
{down = iCommandViewSnapView8,	up = iCommandViewSnapViewStop, name = 'Snap View 8', category = 'View Cockpit'},
{down = iCommandViewSnapView9,	up = iCommandViewSnapViewStop, name = 'Snap View 9', category = 'View Cockpit'},

{down = iCommandViewLeftMirrorOn ,	up = iCommandViewLeftMirrorOff , name = 'Mirror left glance', category = 'View Cockpit'},


{pressed = iCommandViewForward, up = iCommandViewForwardStop, name = 'Zoom in', category = 'View Cockpit'},
{pressed = iCommandViewBack, up = iCommandViewBackStop, name = 'Zoom out', 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 = iCommandViewTransposeModeOn, up = iCommandViewTransposeModeOff, name = 'Camera transpose mode (press and hold)', category = 'View Cockpit'},
{down = iCommand_ExplorationStart, name = 'Enable visual recon mode', category = 'View Cockpit'},

-- Extended view
{down = iCommandViewCameraJiggle, name = 'Camera jiggle toggle', category = 'View Extended'},
{down = iCommandViewKeepTerrain, name = 'Camera terrain altitude hold', 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 = 'Camera ordinance tracking', 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 = iCommandAllMissilePadlock, name = 'Padlock missiles all', category = 'View Padlock'},
{down = iCommandThreatMissilePadlock, name = 'Padlock missile threat', category = 'View Padlock'},
{down = iCommandViewLock, name = 'Padlock cycle', category = 'View Padlock'},
{down = iCommandViewUnlock, name = 'Padlock Off (stop padlock)', category = 'View Padlock'},
{down = iCommandViewTerrainLock, name = 'Padlock terrain point', category = 'View Padlock'},


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

-- Stick
{combos = {{key = 'JOY_BTN2'}}, 	down = iCommandPlanePickleOn, up = iCommandPlanePickleOff, name = 'Weapon release', category = 'Stick'},
{combos = {{key = 'JOY_BTN1'}}, 	down = iCommandPlaneFire, up = iCommandPlaneFireOff, name = 'Gun fire', category = 'Stick'},

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

{pressed = device_commands.Button_23, cockpit_device_id  = devices.ENGINE_SYSTEM, value_pressed = 1.0, 	name = 'Throttle Increase', category = 'Flight Control'},
{pressed = device_commands.Button_23, cockpit_device_id  = devices.ENGINE_SYSTEM, value_pressed = -1.0,	name = 'Throttle Decrease', category = 'Flight Control'},
{pressed = device_commands.Button_24, cockpit_device_id  = devices.ENGINE_SYSTEM, value_pressed = 1.0,	name = 'Engine RPM Increase', category = 'Flight Control'},
{pressed = device_commands.Button_24, cockpit_device_id  = devices.ENGINE_SYSTEM, value_pressed = -1.0,	name = 'Engine RPM Decrease', category = 'Flight Control'},

{down = iCommandPlane_P_51_WarEmergencyPower, name = 'War Emergency Power', category = 'Flight Control'},


{down = device_commands.Button_11, cockpit_device_id  = devices.ENGINE_SYSTEM, value_down = 0.0, name = 'Mixture IDLE CUT OFF', category = 'Flight Control'},
{down = device_commands.Button_11, cockpit_device_id  = devices.ENGINE_SYSTEM, value_down = 0.1, name = 'Mixture RUN', category = 'Flight Control'},
{down = device_commands.Button_11, cockpit_device_id  = devices.ENGINE_SYSTEM, value_down = 0.2, name = 'Mixture EMERGENCY FULL RICH', category = 'Flight Control'},
{down = device_commands.Button_20, cockpit_device_id  = devices.ENGINE_SYSTEM, value_down = 1.0, name = 'Mixture control (rotary)', category = 'Flight Control'},

{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'},
{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'},

{pressed = device_commands.Button_13, cockpit_device_id  = devices.ENGINE_SYSTEM, value_pressed = 1.0, name = 'Throttle Control Lock', category = 'Flight Control'},
{pressed = device_commands.Button_13, cockpit_device_id  = devices.ENGINE_SYSTEM, value_pressed = -1.0, name = 'Throttle Control Unlock', category = 'Flight Control'},
{pressed = device_commands.Button_15, cockpit_device_id  = devices.ENGINE_SYSTEM, value_pressed = 1.0, name = 'Propeller & Mixture Lock', category = 'Flight Control'},
{pressed = device_commands.Button_15, cockpit_device_id  = devices.ENGINE_SYSTEM, value_pressed = -1.0, name = 'Propeller & Mixture Unlock', category = 'Flight Control'},

--flaps
{down = device_commands.Button_2, cockpit_device_id  = devices.CONTROL_SYSTEM, value_down = 1.0, name = 'Flaps Up', category = 'Flight Control'},
{down = device_commands.Button_2, cockpit_device_id  = devices.CONTROL_SYSTEM, value_down = 0.0, name = 'Flaps Down', category = 'Flight Control'},

--Trimmers
{pressed = device_commands.Button_11, cockpit_device_id  = devices.CONTROL_SYSTEM, value_pressed = -0.1, name = 'Trim Aileron Left', category = 'Flight Control'},
{pressed = device_commands.Button_11, cockpit_device_id  = devices.CONTROL_SYSTEM, value_pressed = 0.1, name = 'Trim Aileron Right', category = 'Flight Control'},
{pressed = device_commands.Button_12, cockpit_device_id  = devices.CONTROL_SYSTEM, value_pressed = 0.05, name = 'Trim Elevator Down', category = 'Flight Control'},
{pressed = device_commands.Button_12, cockpit_device_id  = devices.CONTROL_SYSTEM, value_pressed = -0.05, name = 'Trim Elevator Up', category = 'Flight Control'},
{pressed = device_commands.Button_13, cockpit_device_id  = devices.CONTROL_SYSTEM, value_pressed = -0.1, name = 'Trim Rudder Left', category = 'Flight Control'},
{pressed = device_commands.Button_13, cockpit_device_id  = devices.CONTROL_SYSTEM, value_pressed = 0.1, name = 'Trim Rudder Right', category = 'Flight Control'},
{down = device_commands.Button_14, cockpit_device_id  = devices.CONTROL_SYSTEM, value_down = 1.0, name = 'Trimmers Reset', category = 'Flight Control'},

-- Systems
{down = iCommandPlaneWheelBrakeOn, up = iCommandPlaneWheelBrakeOff, name = 'Wheel brake Both', category = 'Systems'},
{down = iCommandPlaneWheelBrakeLeftOn, up = iCommandPlaneWheelBrakeLeftOff, name = 'Wheel brake Left', category = 'Systems'},
{down = iCommandPlaneWheelBrakeRightOn, up = iCommandPlaneWheelBrakeRightOff, name = 'Wheel brake Right', category = 'Systems'},
{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'},
{down = iCommandPlaneEject, name = 'Bailout', category = 'Systems'},
{down = device_commands.Button_5, cockpit_device_id  = devices.WEAPON_CONTROL, value_down = 1, name = 'Bomb salvo release Left', category = 'Systems'},
{down = device_commands.Button_6, cockpit_device_id  = devices.WEAPON_CONTROL, value_down = 1, name = 'Bomb salvo release Right', category = 'Systems'},

{pressed = device_commands.Button_4, cockpit_device_id  = devices.CPT_MECH, value_pressed = -1.0, name = 'Canopy Opening', category = 'Systems'},
{pressed = device_commands.Button_4, cockpit_device_id  = devices.CPT_MECH, value_pressed = 1.0, name = 'Canopy Closing', category = 'Systems'},
{down = device_commands.Button_5, cockpit_device_id  = devices.CPT_MECH, value_down = 1.0, name = 'Canopy Emergency Release', category = 'Systems'},

{down = device_commands.Button_2, cockpit_device_id  = devices.HYDRAULIC_SYSTEM, value_down = 1.0, name = 'Hydraulic Emergency Release Knob', category = 'Systems'},

{down = device_commands.Button_4, cockpit_device_id  = devices.CONTROL_SYSTEM, value_down = 1.0, name = 'Landing Gear Up/Down', category = 'Systems'},
{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'},
{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'},

{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'},
{down = device_commands.Button_4, cockpit_device_id  = devices.OXYGEN_SYSTEM, value_down = 1.0, name = 'Oxygen regulator Emergency By-Pass Valve', category = 'Systems'},

--K-14 GunSight
{pressed = device_commands.Button_14, cockpit_device_id  = devices.K14_GUNSIGHT, value_pressed = 0.5,   name = 'Gunsight target span Increase', category = 'K-14 gunsight'},
{pressed = device_commands.Button_14, cockpit_device_id  = devices.K14_GUNSIGHT, value_pressed = -0.5,   name = 'Gunsight target span Decrease', category = 'K-14 gunsight'},

{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'},
{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'},

{down = device_commands.Button_3, cockpit_device_id  = devices.K14_GUNSIGHT, value_down = 0.0,	 name = 'Gunsight mode FIXED', category = 'K-14 gunsight'},
{down = device_commands.Button_3, cockpit_device_id  = devices.K14_GUNSIGHT, value_down = 0.1,	 name = 'Gunsight mode FIXED GYRO', category = 'K-14 gunsight'},
{down = device_commands.Button_3, cockpit_device_id  = devices.K14_GUNSIGHT, value_down = 0.2,	 name = 'Gunsight mode GYRO', category = 'K-14 gunsight'},
{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'},
{down = device_commands.Button_17, cockpit_device_id  = devices.K14_GUNSIGHT, value_down = 1.0,	 name = 'Gunsight mode (rotary)', category = 'K-14 gunsight'},

{down = device_commands.Button_8, cockpit_device_id  = devices.K14_GUNSIGHT, value_down = 1.0,	 name = 'Gunsight gyromotor power', category = 'K-14 gunsight'},
{pressed = device_commands.Button_10, cockpit_device_id  = devices.K14_GUNSIGHT, value_pressed = 1.0,	 name = 'Gunsight brightness Increase', category = 'K-14 gunsight'},
{pressed = device_commands.Button_10, cockpit_device_id  = devices.K14_GUNSIGHT, value_pressed = -1.0,	 name = 'Gunsight brightness Decrease', category = 'K-14 gunsight'},


--Right Switch Panel
{down = device_commands.Button_2, cockpit_device_id  = devices.RIGHT_SWITCH_PANEL, value_down = 1.0,	 name = 'Battery', category = 'Right Switch Panel'},
{down = device_commands.Button_4, cockpit_device_id  = devices.RIGHT_SWITCH_PANEL, value_down = 1.0,	 name = 'Generator', category = 'Right Switch Panel'},
{down = device_commands.Button_20, cockpit_device_id  = devices.RIGHT_SWITCH_PANEL, value_down = 1.0, name = 'Gun heat', category = 'Right Switch Panel'},
{down = device_commands.Button_6, cockpit_device_id  = devices.RIGHT_SWITCH_PANEL, value_down = 1.0,	 name = 'Pitot heat', category = 'Right Switch Panel'},

{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'},
{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'},
{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'},
{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'},

{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'},
{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'},
{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'},
{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'},


{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'},
{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'},
{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'},
{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'},
{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'},
{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'},
{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'},
{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'},
{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'},

{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'},
{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'},
{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'},

{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'},
{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'},


--Remote compass 
{pressed = device_commands.Button_2, cockpit_device_id = 23, value_pressed = -1.0, name = 'Compass course Decrease', category = 'Front Dash'},
{pressed = device_commands.Button_2, cockpit_device_id = 23, value_pressed = 1.0, name = 'Compass course Increase', category = 'Front Dash'},

--Directional gyro 
{pressed = device_commands.Button_2, cockpit_device_id  = devices.DIRECTIONAL_GYRO, value_pressed = -1.0, name = 'Directional gyro heading Decrease', category = 'Front Dash'},
{pressed = device_commands.Button_2, cockpit_device_id  = devices.DIRECTIONAL_GYRO, value_pressed = 1.0, name = 'Directional gyro heading Increase', category = 'Front Dash'},
{down = device_commands.Button_4,	 cockpit_device_id  = devices.DIRECTIONAL_GYRO, value_down = 1, 	  name = 'Directional gyro Cage/Uncage', category = 'Front Dash'},

--	AN5736 Flight Indicator (Gyro Horizon Indicator) 
{pressed = device_commands.Button_4, cockpit_device_id  = devices.ARTIFICIAL_HORIZON, value_pressed = -1.0, name = 'Horizon pitch Decrease', category = 'Front Dash'},
{pressed = device_commands.Button_4, cockpit_device_id  = devices.ARTIFICIAL_HORIZON, value_pressed = 1.0, name = 'Horizon pitch Increase', category = 'Front Dash'},
{down = device_commands.Button_5, cockpit_device_id  = devices.ARTIFICIAL_HORIZON, value_down = 1.0, name = 'Horizon Cage', category = 'Front Dash'},
{pressed = device_commands.Button_6, cockpit_device_id  = devices.ARTIFICIAL_HORIZON, value_pressed = -1.0, name = 'Horizon cage knob OFF', category = 'Front Dash'},
{pressed = device_commands.Button_6, cockpit_device_id  = devices.ARTIFICIAL_HORIZON, value_pressed = 1.0, name = 'Horizon cage knob ON', category = 'Front Dash'},

--Clock 
{down = device_commands.Button_3, cockpit_device_id  = devices.CLOCK, value_down = 1.0,  name = 'Clock Winding/Adjust', category = 'Front Dash'},
{pressed = device_commands.Button_4, cockpit_device_id  = devices.CLOCK, value_pressed = -1.0, name = 'Clock Winding/Adjust Decrease', category = 'Front Dash'},
{pressed = device_commands.Button_4, cockpit_device_id  = devices.CLOCK, value_pressed = 1.0, name = 'Clock Winding/Adjust Increase', category = 'Front Dash'},

--Altimeter 
{pressed = device_commands.Button_2, cockpit_device_id  = devices.ALTIMETER, value_pressed = -1.0, name = 'Altimeter pressure set Decrease', category = 'Front Dash'},
{pressed = device_commands.Button_2, cockpit_device_id  = devices.ALTIMETER, value_pressed = 1.0, name = 'Altimeter pressure set Increase', category = 'Front Dash'},

--G-meter 
{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'},

--VHF Radio 
{down = device_commands.Button_9, cockpit_device_id  = devices.VHF_RADIO, value_down = 1.0, name = 'Radio Power', category = 'VHF Radio'},
{down = device_commands.Button_10, cockpit_device_id  = devices.VHF_RADIO, value_down = 1.0, name = 'Radio chanel A', category = 'VHF Radio'},
{down = device_commands.Button_11, cockpit_device_id  = devices.VHF_RADIO, value_down = 1.0, name = 'Radio chanel B', category = 'VHF Radio'},
{down = device_commands.Button_12, cockpit_device_id  = devices.VHF_RADIO, value_down = 1.0, name = 'Radio chanel C', category = 'VHF Radio'},
{down = device_commands.Button_13, cockpit_device_id  = devices.VHF_RADIO, value_down = 1.0, name = 'Radio chanel D', category = 'VHF Radio'},
{pressed = device_commands.Button_14, cockpit_device_id  = devices.VHF_RADIO, value_pressed = -1.0, name = 'Radio lights dimmer Decrease', category = 'VHF Radio'},
{pressed = device_commands.Button_14, cockpit_device_id  = devices.VHF_RADIO, value_pressed = 1.0, name = 'Radio lights dimmer Increase', category = 'VHF Radio'},

{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'},
{down = device_commands.Button_7, cockpit_device_id  = devices.VHF_RADIO, value_down = 0.0, name = 'Radio mode R', category = 'VHF Radio'},
{down = device_commands.Button_7, cockpit_device_id  = devices.VHF_RADIO, value_down = 1.0, name = 'Radio mode REM', category = 'VHF Radio'},
{down = device_commands.Button_18,  cockpit_device_id  = devices.VHF_RADIO, value_down = 1.0,  name = 'Radio mode switch locking lever', category = 'VHF Radio'},
{pressed = device_commands.Button_16, cockpit_device_id  = devices.VHF_RADIO, value_pressed = -1.0, name = 'VHF radio volume Decrease', category = 'VHF Radio'},
{pressed = device_commands.Button_16, cockpit_device_id  = devices.VHF_RADIO, value_pressed = 1.0, name = 'VHF radio volume Increase', category = 'VHF Radio'},

--Front Switch Box
{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'},
{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'},
{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'},
{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'},

{down = device_commands.Button_2, cockpit_device_id  = devices.FRONT_SWITCH_BOX, value_down = 0.0,	 name = 'Ignition switch OFF', category = 'Front Switch Box'},
{down = device_commands.Button_2, cockpit_device_id  = devices.FRONT_SWITCH_BOX, value_down = 0.1,	 name = 'Ignition switch Right', category = 'Front Switch Box'},
{down = device_commands.Button_2, cockpit_device_id  = devices.FRONT_SWITCH_BOX, value_down = 0.2,	 name = 'Ignition switch Left', category = 'Front Switch Box'},
{down = device_commands.Button_2, cockpit_device_id  = devices.FRONT_SWITCH_BOX, value_down = 0.3,	 name = 'Ignition switch BOTH', category = 'Front Switch Box'},
{down = device_commands.Button_6, cockpit_device_id  = devices.FRONT_SWITCH_BOX, value_down = 0.3,	 name = 'Ignition switch (rotary)', category = 'Front Switch Box'},

{pressed = device_commands.Button_3, cockpit_device_id  = devices.FRONT_SWITCH_BOX, value_pressed = -1.0, name = 'Cockpit Lights Decrease', category = 'Front Switch Box'},
{pressed = device_commands.Button_3, cockpit_device_id  = devices.FRONT_SWITCH_BOX, value_pressed = 1.0, name = 'Cockpit Lights Increase', category = 'Front Switch Box'},

{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'},

{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'},
{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'},
{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'},
{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'},
{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'},
{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'},
{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'},
{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'},

{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'},
{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'},
{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'},
{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'},
{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'},

--Rocket Control Panel
{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'},
{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'},
{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'},
{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'},
{down = device_commands.Button_12, cockpit_device_id  = devices.WEAPON_CONTROL, value_down = -1.0, name = 'Rocket counter reset', category = 'Rocket Control Panel'},

{down = device_commands.Button_11, cockpit_device_id  = devices.WEAPON_CONTROL, value_down = 1, name = 'Rockets Delay/Inst', category = 'Rocket Control Panel'},

--Engine control panel
{down = device_commands.Button_3, cockpit_device_id  = devices.ENGINE_CONTROL_PANEL, value_down = 1.0, name = 'Supercharger switch Cover', category = 'Engine Control Panel'},
{down = device_commands.Button_1, cockpit_device_id  = devices.ENGINE_CONTROL_PANEL, value_down = 0.0, name = 'Supercharger switch AUTO', category = 'Engine Control Panel'},
{down = device_commands.Button_1, cockpit_device_id  = devices.ENGINE_CONTROL_PANEL, value_down = 0.1, name = 'Supercharger switch LOW', category = 'Engine Control Panel'},
{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'},

{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'},
{down = device_commands.Button_6, cockpit_device_id  = devices.ENGINE_CONTROL_PANEL, value_down = 1.0, name = 'Fuel Booster', category = 'Engine Control Panel'},
{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'},
{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'},
{down = device_commands.Button_10, cockpit_device_id  = devices.ENGINE_CONTROL_PANEL, value_down = 1.0, name = 'Starter Switch Cover', category = 'Engine Control Panel'},
{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'},

--Fuel Control
{down = device_commands.Button_1, cockpit_device_id  = devices.FUEL_SYSTEM, value_down = 0.0, name = 'Fuel selector Right Combat Tank', category = 'Fuel Control'},
{down = device_commands.Button_1, cockpit_device_id  = devices.FUEL_SYSTEM, value_down = 0.1, name = 'Fuel selector Left Main Tank', category = 'Fuel Control'},
{down = device_commands.Button_1, cockpit_device_id  = devices.FUEL_SYSTEM, value_down = 0.2, name = 'Fuel selector Fuselage Tank', category = 'Fuel Control'},
{down = device_commands.Button_1, cockpit_device_id  = devices.FUEL_SYSTEM, value_down = 0.3, name = 'Fuel selector Right Main Tank', category = 'Fuel Control'},
{down = device_commands.Button_1, cockpit_device_id  = devices.FUEL_SYSTEM, value_down = 0.4, name = 'Fuel selector Left Combat Tank', category = 'Fuel Control'},
{down = device_commands.Button_3, cockpit_device_id  = devices.FUEL_SYSTEM, value_down = 1.0, name = 'Fuel shut-off valve', category = 'Fuel Control'},
{down = device_commands.Button_6, cockpit_device_id  = devices.FUEL_SYSTEM, value_down = 1.0, name = 'Fuel selector valve (rotary)', category = 'Fuel Control'},

--Rear Warning Radar
{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'},
{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'},
{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'},
{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'},

--Detrola receiver
{pressed = device_commands.Button_3, cockpit_device_id = devices.DETROLA, value_pressed = -1.0, name = 'Detrola Frequency Selector Decrease', category = 'Detrola Receiver'},
{pressed = device_commands.Button_3, cockpit_device_id = devices.DETROLA, value_pressed = 1.0, name = 'Detrola Frequency Selector Increase', category = 'Detrola Receiver'},
{pressed = device_commands.Button_4, cockpit_device_id = devices.DETROLA, value_pressed = -1.0, name = 'Detrola Volume Decrease', category = 'Detrola Receiver'},
{pressed = device_commands.Button_4, cockpit_device_id = devices.DETROLA, value_pressed = 1.0, name = 'Detrola Volume Increase', category = 'Detrola Receiver'},

--Homing Adapter
{down = device_commands.Button_1, cockpit_device_id  = devices.HOMING_ADAPTER, value_down = 0.0, name = 'Homing Adapter TRANS', category = 'Homing Adapter'},
{down = device_commands.Button_1, cockpit_device_id  = devices.HOMING_ADAPTER, value_down = 0.1, name = 'Homing Adapter COMM', category = 'Homing Adapter'},
{down = device_commands.Button_1, cockpit_device_id  = devices.HOMING_ADAPTER, value_down = 0.2, name = 'Homing Adapter HOMING', category = 'Homing Adapter'},
{down = device_commands.Button_7, cockpit_device_id  = devices.HOMING_ADAPTER, value_down = 0.2, name = 'Homing Adapter Mode', category = 'Homing Adapter'},
{down = device_commands.Button_4, cockpit_device_id  = devices.HOMING_ADAPTER, value_down = 1.0, name = 'Homing Adapter CW/MCW', category = 'Homing Adapter'},
{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'},

--Iff radio set
{down = device_commands.Button_9, cockpit_device_id  = devices.IFF, value_down = 1.0, name = 'IFF Power On/Off', category = 'IFF'},
{down = device_commands.Button_12, cockpit_device_id  = devices.IFF, value_down = -1, name = 'IFF Code Decrease', category = 'IFF'},
{down = device_commands.Button_12, cockpit_device_id  = devices.IFF, value_down = 1, name = 'IFF Code Increase', category = 'IFF'},
{down = device_commands.Button_18, cockpit_device_id  = devices.IFF, value_down = 1, name = 'IFF Code', category = 'IFF'},
{down = device_commands.Button_3, cockpit_device_id  = devices.IFF, value_down = -1, name = 'IFF TIME', category = 'IFF'},
{down = device_commands.Button_3, cockpit_device_id  = devices.IFF, value_down = 0, name = 'IFF OFF', category = 'IFF'},
{down = device_commands.Button_3, cockpit_device_id  = devices.IFF, value_down = 1, name = 'IFF ON', category = 'IFF'},
{down = device_commands.Button_19, cockpit_device_id  = devices.IFF, value_down = 1, name = 'IFF Mode', category = 'IFF'},
{down = device_commands.Button_13, cockpit_device_id  = devices.IFF, value_down = 1.0, name = 'IFF Detonator Circuit On/Off', category = 'IFF'},
{down = device_commands.Button_10, cockpit_device_id  = devices.IFF, value_down = 1, name = 'IFF Distress Signal', category = 'IFF'},
{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'},
{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'},


--Environment
{pressed = device_commands.Button_4, cockpit_device_id  = devices.ENVIRONMENT_SYSTEM, value_pressed = -1.0, name = 'Defroster Decrease', category = 'Environment System'},
{pressed = device_commands.Button_4, cockpit_device_id  = devices.ENVIRONMENT_SYSTEM, value_pressed = 1.0, name = 'Defroster Increase', category = 'Environment System'},

{pressed = device_commands.Button_5, cockpit_device_id  = devices.ENVIRONMENT_SYSTEM, value_pressed = -1.0, name = 'Air Cold Decrease', category = 'Environment System'},
{pressed = device_commands.Button_5, cockpit_device_id  = devices.ENVIRONMENT_SYSTEM, value_pressed = 1.0, name = 'Air Cold Increase', category = 'Environment System'},

{pressed = device_commands.Button_6, cockpit_device_id  = devices.ENVIRONMENT_SYSTEM, value_pressed = -1.0, name = 'Air Hot Decrease', category = 'Environment System'},
{pressed = device_commands.Button_6, cockpit_device_id  = devices.ENVIRONMENT_SYSTEM, value_pressed = 1.0, name = 'Air Hot Increase', category = 'Environment System'},

{pressed = device_commands.Button_5, cockpit_device_id  = devices.LIGHT_SYSTEM, value_pressed = -1.0, name = 'Cockpit Fluorescent Light Left Decrease', category = 'Environment System'},
{pressed = device_commands.Button_5, cockpit_device_id  = devices.LIGHT_SYSTEM, value_pressed = 1.0, name = 'Cockpit Fluorescent Light Left Increase', category = 'Environment System'},
{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'},
{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'},
{down = device_commands.Button_4, cockpit_device_id  = devices.LIGHT_SYSTEM, value_down = 1.0, name = 'Landing Light', category = 'Environment System'},

--Radiator Air Controls
{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'},
{down = device_commands.Button_9, cockpit_device_id  = devices.ENGINE_SYSTEM, value_down = 0.2, name = 'Radiator coolant Auto', category = 'Radiator Air Controls'},
{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'},
{down = device_commands.Button_5, cockpit_device_id  = devices.ENGINE_SYSTEM, value_down = 1.0, name = 'Radiator coolant Cover', category = 'Radiator Air Controls'},

{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'},
{down = device_commands.Button_10, cockpit_device_id  = devices.ENGINE_SYSTEM, value_down = 0.2, name = 'Radiator oil Auto', category = 'Radiator Air Controls'},
{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'},
{down = device_commands.Button_6, cockpit_device_id  = devices.ENGINE_SYSTEM, value_down = 1.0, name = 'Radiator oil Cover', category = 'Radiator Air Controls'},

--Carburetor air control
{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'},
{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'},
{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'},
{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'},

{down = iCommandPlane_P_51_WarEmergencyPower, name = 'Enable War Emergency Power', category = 'Flight Control'},

--- Kneeboard
{down = device_commands.Button_1, cockpit_device_id  = devices.KNEEBOARD, value_down = 1.0, name = 'Kneeboard Next Page'  , category = 'Kneeboard'},
{down = device_commands.Button_2, cockpit_device_id  = devices.KNEEBOARD, value_down = 1.0, name = 'Kneeboard Previous Page', category = 'Kneeboard'},
{down = iCommandPlaneShowKneeboard,	name = 'Kneeboard ON/OFF', category = 'Kneeboard'},
{down = iCommandPlaneShowKneeboard, up = iCommandPlaneShowKneeboard ,value_down = 1.0,value_up = -1.0, name = 'Kneeboard glance view'  , category = 'Kneeboard'},
{down = device_commands.Button_3	, cockpit_device_id  = devices.KNEEBOARD,value_down = 1.0, name = 'Kneeboard current position mark point'  , category = 'Kneeboard'},

--Night Vision Goggles
{down    = iCommandViewNightVisionGogglesOn   , name = 'Night Vision Goggles'   , category = 'Sensors'},
{pressed = iCommandPlane_Helmet_Brightess_Up  , name = 'Night Vision Goggles Gain Up'  , category = 'Sensors'},
{pressed = iCommandPlane_Helmet_Brightess_Down, name = 'Night Vision Goggles Gain Down', category = 'Sensors'},


},
axisCommands = {

-- joystick axes 
{combos = {{key = 'JOY_X'}}, action = iCommandPlaneRoll, name = 'Roll'},
{combos = {{key = 'JOY_Y'}}, action = iCommandPlanePitch, name = 'Pitch'},
{combos = {{key = 'JOY_RZ'}}, action = iCommandPlaneRudder, name = 'Rudder'},
{combos = {{key = 'JOY_SLIDER1'}}, action = device_commands.Button_25, cockpit_device_id  = devices.ENGINE_SYSTEM, name = 'Throttle'},
{action = device_commands.Button_26, cockpit_device_id  = devices.ENGINE_SYSTEM, name = 'Engine RPM Setting'},

-- TrackIR axes
{action = iCommandViewVerticalAbs		, name = 'Absolute Camera Vertical View'},
{action = iCommandViewHorizontalAbs		, name = 'Absolute Camera Horizontal View'},
{action = iCommandViewHorTransAbs		, name = 'Absolute Horizontal Shift Camera View'},
{action = iCommandViewVertTransAbs		, name = 'Absolute Vertical Shift Camera View'},
{action = iCommandViewLongitudeTransAbs	, name = 'Absolute Longitude Shift Camera View'},
{action = iCommandViewRollAbs			, name = 'Absolute Roll Shift Camera View'},
{action = iCommandViewZoomAbs			, name = 'Zoom View'},


{action = iCommandWheelBrake,		name = 'Wheel Brake'},
{action = iCommandLeftWheelBrake,	name = 'Wheel Brake Left'},
{action = iCommandRightWheelBrake,	name = 'Wheel Brake Right'},

{action = iCommandPlaneTrimRudderAbs, name = 'Trim Rudder'},
{action = iCommandPlaneTrimRollAbs, name = 'Trim Aileron'},
{action = iCommandPlaneTrimPitchAbs, name = 'Trim Elevator'},

{action = device_commands.Button_17, cockpit_device_id  = devices.CONTROL_SYSTEM, name = 'Flaps'},
{action = device_commands.Button_11, cockpit_device_id  = devices.K14_GUNSIGHT, name = 'K-14 Range to target'},
{action = device_commands.Button_12, cockpit_device_id  = devices.K14_GUNSIGHT, name = 'K-14 Target span'},
{action = device_commands.Button_13, cockpit_device_id  = devices.K14_GUNSIGHT, name = 'K-14 Brightness'},

{action = device_commands.Button_16, cockpit_device_id  = devices.ENGINE_SYSTEM, name = 'Throttle Control Lock'},
{action = device_commands.Button_17, cockpit_device_id  = devices.ENGINE_SYSTEM, name = 'Propeller & Mixture Lock'},
{action = device_commands.Button_18, cockpit_device_id  = devices.ENGINE_SYSTEM, name = 'Cold Air Control'},
{action = device_commands.Button_29, cockpit_device_id  = devices.ENGINE_SYSTEM, name = 'Warm Air Control'},

{action = device_commands.Button_11, cockpit_device_id  = devices.RIGHT_SWITCH_PANEL, name = 'Right Fluorescent Light'},
{action = device_commands.Button_6, cockpit_device_id  = devices.LIGHT_SYSTEM, name = 'Left Fluorescent Light'},
{action = device_commands.Button_4, cockpit_device_id  = devices.FRONT_SWITCH_BOX, name = 'Cockpit Lights'},

{action = device_commands.Button_6, cockpit_device_id  = devices.TAIL_WARNING_RADAR, name = 'Tail Warning Radar Light Brightness'},
{action = device_commands.Button_19, cockpit_device_id  = devices.VHF_RADIO, name = 'VHF Radio Volume'},

{action = device_commands.Button_7, cockpit_device_id  = devices.CPT_MECH, name = 'Canopy Crank'},

},
}
end
