local cscripts = folder.."../../../Cockpit/Scripts/"
dofile(cscripts.."devices.lua")
dofile(cscripts.."command_defs.lua")


-- from: common_joystick_binding.lua

--[[
local kneeboard_id = 100
if devices and devices.KNEEBOARD then
   kneeboard_id = devices.KNEEBOARD
end
]]--

return {
    forceFeedback = {
    trimmer = 1.0,
    shake = 0.5,
    swapAxes = false,
    invertX = false,
    invertY = false,
},

	keyCommands = {

    -- Debug
    --{down = iCommandMissionRestart, name = _('Restart Mission'), category = _('Debug')},
	{down = Keys.ShowParamList,		name = _('DEBUG RECORD'),	category = _('Debug')},


    -- Gameplay
    --{down = iCommandQuit, name = _('End mission'), 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 = iCommandActivePauseOnOff, name = _('Active Pause'), category = _('Cheat')},
    --{down = iCommandChat, name = _('Multiplayer chat - mode All'), category = _('General')},
    --{down = iCommandFriendlyChat, name = _('Multiplayer chat - mode Allies'), category = _('General')},
    --{down = iCommandAllChat, name = _('Chat read/write All'), category = _('General')},
    --{down = iCommandScreenShot, name = _('Screenshot'), category = _('General')},
    --{down = iCommandGraphicsFrameRate, name = _('Frame rate counter - Service info'), category = _('General')},
    {down = iCommandCockpitShowPilotOnOff, name = _('Show Pilot Body'), category = _('General')},
    {down = iCommandInfoOnOff, name = _('Info bar view toggle'), category = _('General')},
    {down = iCommandRecoverHuman, name = _('Get new plane - respawn'), category = _('General')},
    {down = iCommandPlaneJump, name = _('Jump into selected aircraft'), category = _('General')},
    {down = iCommandViewCoordinatesInLinearUnits, name = _('Info bar coordinate units toggle'), category = _('General')},
    {down = iCommandCockpitClickModeOnOff, name = _('Clickable mouse cockpit mode On/Off'), category = _('General')},
    {down = iCommandSoundOnOff, name = _('Sound On/Off'), category = _('General')},
    {down = iCommandMissionResourcesManagement, name = _('Rearming and Refueling Window'), category = _('General')},
    {down = iCommandViewBriefing, name = _('View briefing on/off'), category = _('General')},
    {down = iCommandPlane_ShowControls, name = _('Show controls indicator') , category = _('General')},

    -- Communications
    {down = iCommandPlaneDoAndHome, name = _('Flight - Complete mission and RTB'), category = _('Communications')},
    {down = iCommandPlaneDoAndBack, name = _('Flight - Complete mission and rejoin'), category = _('Communications')},
    {down = iCommandPlaneFormation, name = _('Toggle Formation'), category = _('Communications')},
    {down = iCommandPlaneJoinUp, name = _('Join Up Formation'), category = _('Communications')},
    {down = iCommandPlaneAttackMyTarget, name = _('Attack My Target'), category = _('Communications')},
    {down = iCommandPlaneCoverMySix, name = _('Cover Me'), category = _('Communications')},
    {down = iCommandAWACSHomeBearing, name = _('Request AWACS Home Airbase'), category = _('Communications')},
    {down = iCommandPlane_EngageGroundTargets, name = _('Flight - Attack ground targets'), category = _('Communications')},
    {down = iCommandPlane_EngageAirDefenses, name = _('Flight - Attack air defenses'), category = _('Communications')},
    {down = iCommandToggleCommandMenu, name = _('Communication menu'), category = _('Communications')},
    {down = ICommandSwitchDialog, name = _('Switch dialog'), category = _('Communications')},
    {down = ICommandSwitchToCommonDialog, name = _('Switch to main menu'), category = _('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 = iCommandViewChaseArcade, name = _('F4 Arcade 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 = 3256,	cockpit_device_id  = 0,	value_down = 1.0,	name = _('Flashlight'),	category = _('View Cockpit')},

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

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

    --Flight Control
    {down = iCommandPlaneUpStart, 					up = iCommandPlaneUpStop, name = _('Aircraft Pitch Down'), category = _('Flight Control')},
    {down = iCommandPlaneDownStart, 				up = iCommandPlaneDownStop, name = _('Aircraft Pitch 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 = Keys.PlaneLeftRudderStart, 				up = Keys.PlaneLeftRudderStop, name = _('Aircraft Rudder Left'), category = _('Flight Control')},
    {down = Keys.PlaneRightRudderStart, 			up = Keys.PlaneRightRudderStop, name = _('Aircraft Rudder Right'), category = _('Flight Control')},
    {down = iCommandPlane_P_51_WarEmergencyPower,	up = iCommandPlane_P_51_WarEmergencyPower,value_down = 1,value_up=0, name = _('Special Afterburner Mode'), category = _('Flight Control')},
	--No Trim Now
    {pressed = Keys.PlaneTrimUp, up = Keys.PlaneTrimStop, name = _('Trim: Nose Up'), category = _('Flight Control')},
    {pressed = Keys.PlaneTrimDown, up = Keys.PlaneTrimStop, name = _('Trim: Nose Down'), category = _('Flight Control')},
    {pressed = Keys.PlaneTrimLeft, up = Keys.PlaneTrimStop, name = _('Trim: Left Wing Down'), category = _('Flight Control')},
    {pressed = Keys.PlaneTrimRight, up = Keys.PlaneTrimStop, name = _('Trim: Right Wing Down'), category = _('Flight Control')},
    {pressed = Keys.PlaneTrimLeftRudder, up = Keys.PlaneTrimStop, name = _('Trim: Rudder Left'), category = _('Flight Control')},
    {pressed = Keys.PlaneTrimRightRudder, up = Keys.PlaneTrimStop, name = _('Trim: Rudder Right'), category = _('Flight Control')},
    {down = Keys.TrimCancel, name = _('Trim: Reset'), category = _('Flight Control')},


    {pressed = iCommandThrottleIncrease, up = iCommandThrottleStop,  name = _('Throttle Up'), category = _('Flight Control')},
    {pressed = iCommandThrottleDecrease, up = iCommandThrottleStop,  name = _('Throttle Down'), category = _('Flight Control')},
    --{pressed = iCommandThrottle1Increase,up = iCommandThrottle1Stop, name = _('Throttle Left Up'), category = _('Flight Control')},
    --{pressed = iCommandThrottle1Decrease,up = iCommandThrottle1Stop, name = _('Throttle Left Down'), category = _('Flight Control')},
    --{pressed = iCommandThrottle2Increase,up = iCommandThrottle2Stop, name = _('Throttle Right Up'), category = _('Flight Control')},
    --{pressed = iCommandThrottle2Decrease,up = iCommandThrottle2Stop, name = _('Throttle Right Down'), category = _('Flight Control')},

    {down = iCommandPlaneAUTIncreaseRegime, name = _('Throttle Step Up'), category = _('Flight Control')},
    {down = iCommandPlaneAUTDecreaseRegime, name = _('Throttle Step Down'), category = _('Flight Control')},
    --{down = iCommandPlaneAUTIncreaseRegimeLeft, name = _('Throttle Step Up Left'), category = _('Flight Control')},
    --{down = iCommandPlaneAUTDecreaseRegimeLeft, name = _('Throttle Step Down Left'), category = _('Flight Control')},
    --{down = iCommandPlaneAUTIncreaseRegimeRight, name = _('Throttle Step Up Right'), category = _('Flight Control')},
    --{down = iCommandPlaneAUTDecreaseRegimeRight, name = _('Throttle Step Down Right'), category = _('Flight Control')},

    -- Systems
	{down = Keys.A2A, name = _('A2A'), category = _('Systems')},
    {down = Keys.A2G, name = _('A2G'), category = _('Systems')},
    {down = iCommandPlaneFonar, 				name = _('Canopy Open/Close'), category = _('Systems')},
    {down = iCommandPlaneAirBrake, 				name = _('Airbrake'), category = _('Systems')},
    {down = iCommandPlaneAirBrakeOn, 			name = _('Airbrake On'), category = _('Systems')},
    {down = iCommandPlaneAirBrakeOff, 			name = _('Airbrake Off'), category = _('Systems')},

	{down = Keys.PlaneFuelOn, up = Keys.PlaneFuelOff, name = _('Fuel Dump'),	category = _('Systems')},

    {down = Keys.Plane_HOTAS_NoseWheelSteeringButton, up = Keys.Plane_HOTAS_NoseWheelSteeringButton,value_down=1,value_up=0, name = _('Nose Gear Maneuvering Range'), category = _('Systems')},
    {down = Keys.Plane_HOTAS_NoseWheelSteeringButtonOff, name = _('Nose Wheel Steering'), category = _('Systems')},
    {down = Keys.PlaneParachute, name = _('Drag Chute DEPLOY'), category = _('Systems')},

    {down = iCommandPlaneWingtipSmokeOnOff, name = _('Smoke'), category = _('Systems')},
    {down = iCommandPlaneCockpitIllumination, name = _('Illumination Cockpit'), category = _('Systems')},
    {down = Keys.Eject, name = _('Eject (3 times)'), 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 Down'), category = _('Systems')},
    {down = iCommandPlaneFlapsOff, name = _('Flaps Up'), category = _('Systems')},
    {down = Keys.PlaneFlapsStop, name = _('Flaps Stop'), category = 'Systems'},

--	{down = iCommandPlaneGearUp,up = iCommandPlaneGearDown,		name = _('Landing Gear Up/Down (HOTAS)'), category = {_('Systems'), _('HOTAS')}}, -- for Warthog/HOTAS Toggle
--	{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 = Keys.PlaneGearUp, up = Keys.PlaneGearDown, name = _('Landing Gear Up/Down (HOTAS)'), category = {_('Systems'), _('HOTAS')}}, -- for Warthog/HOTAS Toggle
    {down = Keys.PlaneGear, 					name = _('Landing Gear Up/Down'), category = _('Systems')},
    {down = Keys.PlaneGearUp, 					name = _('Landing Gear Up'), category = _('Systems')},
    {down = Keys.PlaneGearDown, 				name = _('Landing Gear Down'), category = _('Systems')},

    {down = Keys.PlaneWheelBrakeOn, up = Keys.PlaneWheelBrakeOff, value_down=1,value_up=0,name = _('Wheel Brake On/Off'), category = _('Systems')},
	{down = Keys.PlaneWheelBrakeOn, name = _('Wheel Brake On'), category = _('Systems')},
	{down = Keys.PlaneWheelBrakeOff, name = _('Wheel Brake Off'), category = _('Systems')},
    -- Communications
    {down = iCommandAWACSTankerBearing, name = _('Request AWACS Available Tanker'), category = _('Communications')},
    {down = iCommandToggleReceiveMode, name = _('Receive Mode'), category = _('Communications')},
	{down = Keys.UHF_PIT,	name = _('UHF Pit'),	category = _('Communications')},
    {down = Keys.VHF_PIT,	name = _('VHF Pit'),	category = _('Communications')},
    {down = Keys.HF_PIT,	name = _('HF Pit'),		category = _('Communications')},
    -- Weapons
	{down = Keys.WeaponLaunch, up = Keys.WeaponLaunch, value_down = 1, value_up = 0, name = _('Weapon Launch'), category = _('Weapons')},
    {down = Keys.EmergJettion, value_down = 1, name = _('Emergency Jettison'), category = _('Weapons')},
    {down = Keys.PlaneAHCPMasterArm, 	name = _('Master Arm On'), 	category = _('Weapons')},
    {down = Keys.PlaneAHCPMasterSafe, 	name = _('Master Arm Safe'), 	category = _('Weapons')},
	{down = Keys.masterArm, 			name = _('Master Arm Switch'), 		category = _('Weapons')},
	--HOTAS
	{down = Keys.GunMode, name = _('Gun Mode Button'),cockpit_device_id = devices.WEAPON_SYSTEM, category = {_('Weapons'),_('Stick'),_('HOTAS')}},
	{down = Keys.GunMode, up = Keys.GunMode, value_down = 1.0, value_up = 0.0, name = _('Gun Mode Switch'), cockpit_device_id = devices.WEAPON_SYSTEM, category= {_('Weapons'),_('Stick'),_('HOTAS')}},
	{down = Keys.GunMode, value_down = 1.0, name = _('Gun Mode On'), cockpit_device_id = devices.WEAPON_SYSTEM, category = {_('Weapons'),_('Stick'),_('HOTAS')}},
	{down = Keys.GunMode, value_down = 0.0, name = _('Gun Mode Off'), cockpit_device_id = devices.WEAPON_SYSTEM, category = {_('Weapons'),_('Stick'),_('HOTAS')}},
	--{down = Keys.PlaneFlapsDownHotas, up = Keys.PlaneFlapsStop, name = _('Flaps Down else Stop (HOTAS)'), category = 'HOTAS'}, -- for Warthog/HOTAS Flaps lever - realistic
    --{down = Keys.PlaneFlapsUpHotas, up = Keys.PlaneFlapsStop, name = _('Flaps Up else Stop (HOTAS)'), category = 'HOTAS'},  -- for Warthog/HOTAS Flaps lever - realistic

	{down = Keys.WeaponSelectNext, name = _('Weapon Select Next'), category = {_('Weapons'),_('Stick'), _('HOTAS')}},
	{down = Keys.STICK_SENSOR_CONTROL_FWD,		up = Keys.STICK_SENSOR_CONTROL_FWD,		value_down =  1.0,		value_up = 0.0,	name = _('Sensor Control Switch - Fwd'),								category = {_('Stick'), _('HOTAS')}},
    {down = Keys.STICK_SENSOR_CONTROL_AFT,		up = Keys.STICK_SENSOR_CONTROL_AFT,		value_down =  1.0,		value_up = 0.0,	name = _('Sensor Control Switch - Aft'),								category = {_('Stick'), _('HOTAS')}},
    {down = Keys.STICK_SENSOR_CONTROL_LEFT,	    up = Keys.STICK_SENSOR_CONTROL_LEFT,	value_down =  1.0,		value_up = 0.0,	name = _('Sensor Control Switch - Left'),								category = {_('Stick'), _('HOTAS')}},
    {down = Keys.STICK_SENSOR_CONTROL_RIGHT,	up = Keys.STICK_SENSOR_CONTROL_RIGHT,	value_down =  1.0,		value_up = 0.0,	name = _('Sensor Control Switch - Right'),								category = {_('Stick'), _('HOTAS')}},
--	{down = Keys.Plane_HOTAS_TriggerSecondStage,up = Keys.Plane_HOTAS_TriggerSecondStage, value_down = 1, value_up = 0, name = _('Trigger Second Stage'), category = {_('Weapons'),_('Stick'),_('HOTAS') } },
--	{down = Keys.Plane_HOTAS_TriggerFirstStage, up = Keys.Plane_HOTAS_TriggerFirstStage , value_down = 1, value_up = 0, name = _('Trigger First Stage'), category = {_('Weapons'),_('Stick'),_('HOTAS') } },
    {down = Keys.Plane_HOTAS_TargetManagementSwitchUp,		up = Keys.Plane_HOTAS_TargetManagementSwitchOff,	name = _('Target Management Switch - Up'),		category = {_('Stick'), _('HOTAS')}},
    {down = Keys.Plane_HOTAS_TargetManagementSwitchDown,	up = Keys.Plane_HOTAS_TargetManagementSwitchOff,	name = _('Target Management Switch - Down'),	category = {_('Stick'), _('HOTAS')}},
    {down = Keys.Plane_HOTAS_TargetManagementSwitchLeft,	up = Keys.Plane_HOTAS_TargetManagementSwitchOff,	name = _('Target Management Switch - Left'),	category = {_('Stick'), _('HOTAS')}},
    {down = Keys.Plane_HOTAS_TargetManagementSwitchRight,	up = Keys.Plane_HOTAS_TargetManagementSwitchOff,	name = _('Target Management Switch - Right'),	category = {_('Stick'), _('HOTAS')}},

	--Countermeasures
	{down = Keys.DropFlare, 		name = _('Countermeasures Flares Dispense'), category = _('Countermeasures')},
    {down = Keys.DropChaff, 		name = _('Countermeasures Chaff Dispense'), category = _('Countermeasures')},
    {down = Keys.DropChaffAndFlare, name = _('Countermeasures Release'), category = _('Countermeasures')},
	{down = Keys.ActiveJamming, 	name = _('ECM'), category = _('Countermeasures')},
    --Sensors
	{down = iCommandPlane_LockOn_start, up = iCommandPlane_LockOn_finish, name = _('Target Lock'), 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')},
	{down = Keys.PlaneRadarReset,										name = _('Radar Reset'), 		category = _('Sensors')},
--	{down = Keys.PlaneRadarChangeMode,	name = _('Radar Change Mode'), 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') },
	{pressed = Keys.Plane_Helmet_Brightess_Up  , 						name = _('Night Vision Goggles Gain Up')  , category = _('Sensors')},
    {pressed = Keys.Plane_Helmet_Brightess_Down, 						name = _('Night Vision Goggles Gain Down'), category = _('Sensors')},
	{down = Keys.PlaneZoomIn,											name = _('Display Zoom In'), category = _('Sensors')},
    {down = Keys.PlaneZoomOut,											name = _('Display Zoom Out'), category = _('Sensors')},
    {down = Keys.ViewNightVisionGogglesOn, 								name = _('Night Vision Goggles'), category = _('Sensors')},

    --Electric Systems
    {down = Keys.PlaneAirRefuel, name = _('Refueling Boom'), category = 'Fuel Systems'},

	{down = Keys.Battery, name = _('Battery Power'), category = _('Electric Systems')},
    {down = Keys.LeftAcGenerator, name = _('Left Generator'), category = _('Electric Systems')},
    {down = Keys.RightAcGenerator, name = _('Right Generator'), category = _('Electric Systems')},
    {down = Keys.GndPower, name = _('Ground Power'), category = _('Electric Systems')},

	--Engine Systems
    {down = Keys.EngStartSelector, name = _('Engine Start Selector'), category = _('Engine Systems')},
    {down = Keys.EngStartor, up = Keys.EngStartor,value_down = 1,value_up = 0, name = _('Engine Startor'), category = _('Engine Systems')},
    {down = Keys.LeftThrottorIdle, name = _('Left Throttle Idle/Off'), category = _('Engine Systems')},
    {down = Keys.RightThrottorIdle, name = _('Right Throttle Idle/Off'), category = _('Engine Systems')},

	--Lights Systems
    {down = Keys.PlaneNavLightOnOff, name = _('Navigation Lights Bright/Off'), category = _('Lights Systems')},
    {down = Keys.PlaneAntiCollisionLightOnOff, name = _('Anti Collision Lights On/Off'), category = _('Lights Systems')},
    {down = Keys.PlaneHeadingLightOnOff, name = _('Taxi Lights On/Off'), category = _('Lights Systems')},
    {down = iCommandPlaneLightsOnOff, name = _('Navigation lights'), category = _('Lights Systems')},
    {down = iCommandPlaneHeadLightOnOff, name = _('Gear Light Near/Far/Off'), category = _('Lights Systems')},

	{down = click_cmd.flood_light, 				cockpit_device_id = devices.LIGHT, value_down = 1.0, name = _('Flood Light On'), 			category = _('Lights Systems')},
	{down = click_cmd.flood_light, 				cockpit_device_id = devices.LIGHT, value_down = 0.0, name = _('Flood Light Off'), 			category = _('Lights Systems')},
	{down = Keys.flood_light_BRT_Increase, 		cockpit_device_id = devices.LIGHT, name = _('Flood Light BRT +'), 		category = _('Lights Systems')},
	{down = Keys.flood_light_BRT_Decrease, 		cockpit_device_id = devices.LIGHT, name = _('Flood Light BRT -'), 		category = _('Lights Systems')},

	{down = click_cmd.background_light, 		cockpit_device_id = devices.LIGHT, value_down = 1.0, name = _('Background Light On'), 		category = _('Lights Systems')},
	{down = click_cmd.background_light, 		cockpit_device_id = devices.LIGHT, value_down = 0.0, name = _('Background Light Off'), 		category = _('Lights Systems')},
	{down = Keys.background_light_BRT_Increase, cockpit_device_id = devices.LIGHT, name = _('Background Light BRT +'), 	category = _('Lights Systems')},
	{down = Keys.background_light_BRT_Decrease, cockpit_device_id = devices.LIGHT, name = _('Background Light BRT -'), 	category = _('Lights Systems')},

	--Fuel Systems
	{down = Keys.PlaneAirRefuel, name = _('Refueling Boom'), category = _('Fuel Systems')},
	--HMD    
	{down = click_cmd.hmdPower, cockpit_device_id = devices.HELMET, value_down =  1.0, name = _('HMD Power On'),  category = _('HMD')},
	{down = click_cmd.hmdPower, cockpit_device_id = devices.HELMET, value_down = -1.0, name = _('HMD Power Off'), category = _('HMD')},
    {down = click_cmd.hmdBrt, 	cockpit_device_id = devices.HELMET, value_down = 1.0, name = _('HMD BRT On'), 		category = _('HMD')},
	{down = click_cmd.hmdBrt, 	cockpit_device_id = devices.HELMET, value_down = 0.0, name = _('HMD BRT Off'), 		category = _('HMD')},
    {down = Keys.hmdPwr, name = _('HMD Power On/Off'), category = _('HMD')},
	--HUD
	{down = click_cmd.hudBrt, 		cockpit_device_id = devices.HUD_DCMS, value_down = 1.0, name = _('HUD On'), 		category = _('HUD')},
	{down = click_cmd.hudBrt, 		cockpit_device_id = devices.HUD_DCMS, value_down = 0.0, name = _('HUD Off'), 		category = _('HUD')},
	{down = Keys.HUD_BRT_Increase, cockpit_device_id = devices.HUD_DCMS, name = _('HUD BRT +'), 	category = _('HUD')},
	{down = Keys.HUD_BRT_Decrease, cockpit_device_id = devices.HUD_DCMS, name = _('HUD BRT -'), 	category = _('HUD')},
	--UFCP
	{down = click_cmd.UFCPBrt, 		cockpit_device_id = devices.UFCP, value_down = 1.0, name = _('UFCP On'), 		category = _('UFCP System')},
	{down = click_cmd.UFCPBrt, 		cockpit_device_id = devices.UFCP, value_down = 0.0, name = _('UFCP Off'), 		category = _('UFCP System')},
	
	--UFCP
    {down = UFCP_click_cmd.key0_dn, up = UFCP_click_cmd.key0_up, cockpit_device_id = devices.UFCP, value_down = 1.0, value_up = 0.0, name = _('UFCP Key 0'), category = _('UFCP')},
    {down = UFCP_click_cmd.key1_dn, up = UFCP_click_cmd.key1_up, cockpit_device_id = devices.UFCP, value_down = 1.0, value_up = 0.0, name = _('UFCP Key 1'), category = _('UFCP')},
    {down = UFCP_click_cmd.key2_dn, up = UFCP_click_cmd.key2_up, cockpit_device_id = devices.UFCP, value_down = 1.0, value_up = 0.0, name = _('UFCP Key 2'), category = _('UFCP')},
    {down = UFCP_click_cmd.key3_dn, up = UFCP_click_cmd.key3_up, cockpit_device_id = devices.UFCP, value_down = 1.0, value_up = 0.0, name = _('UFCP Key 3'), category = _('UFCP')},
    {down = UFCP_click_cmd.key4_dn, up = UFCP_click_cmd.key4_up, cockpit_device_id = devices.UFCP, value_down = 1.0, value_up = 0.0, name = _('UFCP Key 4'), category = _('UFCP')},
    {down = UFCP_click_cmd.key5_dn, up = UFCP_click_cmd.key5_up, cockpit_device_id = devices.UFCP, value_down = 1.0, value_up = 0.0, name = _('UFCP Key 5'), category = _('UFCP')},
    {down = UFCP_click_cmd.key6_dn, up = UFCP_click_cmd.key6_up, cockpit_device_id = devices.UFCP, value_down = 1.0, value_up = 0.0, name = _('UFCP Key 6'), category = _('UFCP')},
    {down = UFCP_click_cmd.key7_dn, up = UFCP_click_cmd.key7_up, cockpit_device_id = devices.UFCP, value_down = 1.0, value_up = 0.0, name = _('UFCP Key 7'), category = _('UFCP')},
    {down = UFCP_click_cmd.key8_dn, up = UFCP_click_cmd.key8_up, cockpit_device_id = devices.UFCP, value_down = 1.0, value_up = 0.0, name = _('UFCP Key 8'), category = _('UFCP')},
    {down = UFCP_click_cmd.key9_dn, up = UFCP_click_cmd.key9_up, cockpit_device_id = devices.UFCP, value_down = 1.0, value_up = 0.0, name = _('UFCP Key 9'), category = _('UFCP')},
    {down = UFCP_click_cmd.Enter_dn, up = UFCP_click_cmd.Enter_up, cockpit_device_id = devices.UFCP, value_down = 1.0, value_up = 0.0, name = _('UFCP Enter'), category = _('UFCP')},
    {down = UFCP_click_cmd.Clear_dn, up = UFCP_click_cmd.Clear_up, cockpit_device_id = devices.UFCP, value_down = 1.0, value_up = 0.0, name = _('UFCP Clear'), category = _('UFCP')},
    {down = UFCP_click_cmd.L1_dn, up = UFCP_click_cmd.L1_up, cockpit_device_id = devices.UFCP, value_down = 1.0, value_up = 0.0, name = _('UFCP L1'), category = _('UFCP')},
    {down = UFCP_click_cmd.L2_dn, up = UFCP_click_cmd.L2_up, cockpit_device_id = devices.UFCP, value_down = 1.0, value_up = 0.0, name = _('UFCP L2'), category = _('UFCP')},
    {down = UFCP_click_cmd.L3_dn, up = UFCP_click_cmd.L3_up, cockpit_device_id = devices.UFCP, value_down = 1.0, value_up = 0.0, name = _('UFCP L3'), category = _('UFCP')},
    {down = UFCP_click_cmd.L4_dn, up = UFCP_click_cmd.L4_up, cockpit_device_id = devices.UFCP, value_down = 1.0, value_up = 0.0, name = _('UFCP L4'), category = _('UFCP')},
    {down = UFCP_click_cmd.R1_dn, up = UFCP_click_cmd.R1_up, cockpit_device_id = devices.UFCP, value_down = 1.0, value_up = 0.0, name = _('UFCP R1'), category = _('UFCP')},
    {down = UFCP_click_cmd.R2_dn, up = UFCP_click_cmd.R2_up, cockpit_device_id = devices.UFCP, value_down = 1.0, value_up = 0.0, name = _('UFCP R2'), category = _('UFCP')},
    {down = UFCP_click_cmd.R3_dn, up = UFCP_click_cmd.R3_up, cockpit_device_id = devices.UFCP, value_down = 1.0, value_up = 0.0, name = _('UFCP R3'), category = _('UFCP')},
    {down = UFCP_click_cmd.R4_dn, up = UFCP_click_cmd.R4_up, cockpit_device_id = devices.UFCP, value_down = 1.0, value_up = 0.0, name = _('UFCP R4'), category = _('UFCP')},
    {down = UFCP_click_cmd.comm_dn, up = UFCP_click_cmd.comm_up, cockpit_device_id = devices.UFCP, value_down = 1.0, value_up = 0.0, name = _('UFCP Commicat'), category = _('UFCP')},
    {down = UFCP_click_cmd.Nav_dn, up = UFCP_click_cmd.Nav_up, cockpit_device_id = devices.UFCP, value_down = 1.0, value_up = 0.0, name = _('UFCP Nav'), category = _('UFCP')},
    {down = UFCP_click_cmd.combat_dn, up = UFCP_click_cmd.combat_up, cockpit_device_id = devices.UFCP, value_down = 1.0, value_up = 0.0, name = _('UFCP Combat'), category = _('UFCP')},
    {down = UFCP_click_cmd.AP_dn, up = UFCP_click_cmd.AP_up, cockpit_device_id = devices.UFCP, value_down = 1.0, value_up = 0.0, name = _('UFCP Autopilot'), category = _('UFCP')},
    {down = UFCP_click_cmd.boat_dn, up = UFCP_click_cmd.boat_up, cockpit_device_id = devices.UFCP, value_down = 1.0, value_up = 0.0, name = _('UFCP Boat Key'), category = _('UFCP')},
    --{down = Keys.key0, name = _('UFCP 0'), category = _('UFCP')},
    --{down = Keys.key1, name = _('UFCP 1'), category = _('UFCP')},
    --{down = Keys.key2, name = _('UFCP 2'), category = _('UFCP')},
    --{down = Keys.key3, name = _('UFCP 3'), category = _('UFCP')},
    --{down = Keys.key4, name = _('UFCP 4'), category = _('UFCP')},
    --{down = Keys.key5, name = _('UFCP 5'), category = _('UFCP')},
    --{down = Keys.key6, name = _('UFCP 6'), category = _('UFCP')},
    --{down = Keys.key7, name = _('UFCP 7'), category = _('UFCP')},
    --{down = Keys.key8, name = _('UFCP 8'), category = _('UFCP')},
    --{down = Keys.key9, name = _('UFCP 9'), category = _('UFCP')},
    --{down = Keys.Enter, name = _('UFCP Enter'), category = _('UFCP')},
    --{down = Keys.Clear, name = _('UFCP Clear'), category = _('UFCP')},
    --{down = Keys.L1, name = _('UFCP L1'), category = _('UFCP')},
    --{down = Keys.L2, name = _('UFCP L2'), category = _('UFCP')},
    --{down = Keys.L3, name = _('UFCP L3'), category = _('UFCP')},
    --{down = Keys.L4, name = _('UFCP L4'), category = _('UFCP')},
    --{down = Keys.R1, name = _('UFCP R1'), category = _('UFCP')},
    --{down = Keys.R2, name = _('UFCP R2'), category = _('UFCP')},
    --{down = Keys.R3, name = _('UFCP R3'), category = _('UFCP')},
    --{down = Keys.R4, name = _('UFCP R4'), category = _('UFCP')},
    --{down = Keys.comm, name = _('UFCP Commicat'), category = _('UFCP')},
    --{down = Keys.Nav, name = _('UFCP Nav'), category = _('UFCP')},
    --{down = Keys.combat, name = _('UFCP Combat'), category = _('UFCP')},
    --{down = Keys.AP, name = _('UFCP Autopilot'), category = _('UFCP')},
    --{down = Keys.boat, name = _('UFCP Boat Key'), category = _('UFCP')},

	--Right Panel
    --{down = Keys.displayBrtMode, name = _('MFCD HUD Brightness Mode Dark/Normal'), category = _('Right Panel')},
    --昼夜、惯导、MFCD 亮度、防拥面板
	{down = click_cmd.HudMFCD_change_dayNight, up = click_cmd.HudMFCD_change_dayNight, cockpit_device_id = devices.MFCD, value_down = 1.0, value_up = -1.0, name = _('Day/Night Mode Switch'), category = _('Right Panel')},
	{down = click_cmd.HudMFCD_change_dayNight, cockpit_device_id = devices.MFCD, value_down = 1.0, value_up = 0.0, name = _('Day/Night Mode Day'), category = _('Right Panel')},
	{down = click_cmd.HudMFCD_change_dayNight, cockpit_device_id = devices.MFCD, value_down = -1.0, value_up = 0.0, name = _('Day/Night Mode Night'), category = _('Right Panel')},
    {down = Keys.MFCD_BRT_Increase, 		cockpit_device_id = devices.MFCD, name = _('MFCD BRT +'), 		category = _('Right Panel')},
	{down = Keys.MFCD_BRT_Decrease, 		cockpit_device_id = devices.MFCD, name = _('MFCD BRT -'), 		category = _('Right Panel')},

	--Keyboard
	{down = Keys.key_A, name = _('Keyboard A'), category = _('Keyboard')},
    {down = Keys.key_B, name = _('Keyboard B'), category = _('Keyboard')},
    {down = Keys.key_C, name = _('Keyboard C'), category = _('Keyboard')},
    {down = Keys.key_D, name = _('Keyboard D'), category = _('Keyboard')},
    {down = Keys.key_E, name = _('Keyboard E'), category = _('Keyboard')},
    {down = Keys.key_F, name = _('Keyboard F'), category = _('Keyboard')},
    {down = Keys.key_G, name = _('Keyboard G'), category = _('Keyboard')},
    {down = Keys.key_H, name = _('Keyboard H'), category = _('Keyboard')},
    {down = Keys.key_I, name = _('Keyboard I'), category = _('Keyboard')},
    {down = Keys.key_J, name = _('Keyboard J'), category = _('Keyboard')},
    {down = Keys.key_K, name = _('Keyboard K'), category = _('Keyboard')},
    {down = Keys.key_L, name = _('Keyboard L'), category = _('Keyboard')},
    {down = Keys.key_M, name = _('Keyboard M'), category = _('Keyboard')},
    {down = Keys.key_N, name = _('Keyboard N'), category = _('Keyboard')},
    {down = Keys.key_O, name = _('Keyboard O'), category = _('Keyboard')},
    {down = Keys.key_P, name = _('Keyboard P'), category = _('Keyboard')},
    {down = Keys.key_Q, name = _('Keyboard Q'), category = _('Keyboard')},
    {down = Keys.key_R, name = _('Keyboard R'), category = _('Keyboard')},
    {down = Keys.key_S, name = _('Keyboard S'), category = _('Keyboard')},
    {down = Keys.key_T, name = _('Keyboard T'), category = _('Keyboard')},
    {down = Keys.key_U, name = _('Keyboard U'), category = _('Keyboard')},
    {down = Keys.key_V, name = _('Keyboard V'), category = _('Keyboard')},
    {down = Keys.key_W, name = _('Keyboard W'), category = _('Keyboard')},
    {down = Keys.key_X, name = _('Keyboard X'), category = _('Keyboard')},
    {down = Keys.key_Y, name = _('Keyboard Y'), category = _('Keyboard')},
    {down = Keys.key_Z, name = _('Keyboard Z'), category = _('Keyboard')},
    {down = Keys.key_SP, name = _('Keyboard Space'), category = _('Keyboard')},
    {down = Keys['key_+/-'], name = _('Keyboard ±'), category = _('Keyboard')},

    {down = Keys.back_a_car, name = _('Back A Car'), category = _('Taxi')},

	},

-- joystick axes 
	axisCommands = {

    {action = iCommandViewHorizontalAbs, 		name = _('Absolute Camera Horizontal View')},
    {action = iCommandViewVerticalAbs, 			name = _('Absolute Camera Vertical View')},
    {action = iCommandViewZoomAbs, 				name = _('Zoom View')},
    {action = iCommandViewRollAbs, 				name = _('Absolute Roll Shift Camera 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 = iCommandPlaneThrustLeft,			name = _('Thrust Left')},
    {action = iCommandPlaneThrustRight,			name = _('Thrust Right')},
    {action = iCommandWheelBrake,				name = _('Wheel Brake')},
    {action = iCommandLeftWheelBrake,			name = _('Wheel Brake Left')},
    {action = iCommandRightWheelBrake,			name = _('Wheel Brake Right')},

	{action = JoyCmd.PlaneSelecterHorizontal,	name = _('TDC Horizontal'),				category = {_('Throttle'), _('HOTAS')}},
    {action = JoyCmd.PlaneSelecterVertical,		name = _('TDC Vertical'),  				category = {_('Throttle'), _('HOTAS')}},

	{action = JoyCmd.Flood_Light_Axis, 			name = _('Flood Light Axis')},
	{action = JoyCmd.Background_Light_Axis, 	name = _('Background Light Axis')},
	{action = JoyCmd.MFCD_BRT_Axis, 			name = _('MFCD Brightness Axis')},
	--{action = JoyCmd.HUD_Color_Axis, 				name = _('HUD Color Axis')},
	--{action = JoyCmd.HMD_BRT_Axis, 				name = _('HMD Brightness Axis')},
	{action = JoyCmd.HUD_BRT_Axis, 				name = _('HUD Brightness Axis')},
	{action = JoyCmd.UFCP_BRT_Axis, 			name = _('UFCP Brightness Axis')},

--[[
	{action = JoyCmd.PlaneSelecterHorizontalAbs,name = _('TDC Horizontal Absolute'), 	category = {_('Throttle'), _('HOTAS')}},
	{action = JoyCmd.PlaneSelecterVerticalAbs,	name = _('TDC Vertical Absolute'), 		category = {_('Throttle'), _('HOTAS')}},
	{action = JoyCmd.PlaneRadarHorizontal,		name = _('Radar Horizontal'), 			category = {_('Throttle'), _('HOTAS')}},
	{action = JoyCmd.PlaneRadarVertical,		name = _('Radar Vertical'), 			category = {_('Throttle'), _('HOTAS')}},
	{action = JoyCmd.PlaneRadarHorizontalAbs,	name = _('Radar Horizontal Absolute'), 	category = {_('Throttle'), _('HOTAS')}},
	{action = JoyCmd.PlaneRadarVerticalAbs,		name = _('Radar Vertical Absolute'), 	category = {_('Throttle'), _('HOTAS')}},

    {action = device_commands.radar_angle_axis,             cockpit_device_id = devices.RADAR,          name = _('Radar Angle Slew')},
    {action = device_commands.radar_angle_axis_abs,         cockpit_device_id = devices.RADAR,          name = _('Radar Angle Absolute')},
    {action = device_commands.intlight_instruments_AXIS,    cockpit_device_id = devices.AVIONICS,       name = _('Lighting: Instrument'),           category = {_('Right Console'), _('INT LTS Panel')}},
    {action = device_commands.intlight_console_AXIS,        cockpit_device_id = devices.AVIONICS,       name = _('Lighting: Console'),              category = {_('Right Console'), _('INT LTS Panel')}},
    {action = device_commands.intlight_whiteflood_AXIS,     cockpit_device_id = devices.AVIONICS,       name = _('Lighting: White Flood'),          category = {_('Right Console'), _('INT LTS Panel')}},

    {action = device_commands.AWRS_drop_interval_AXIS,      cockpit_device_id = devices.WEAPON_SYSTEM,  name = _('AWRS: Drop Interval'),            category = {_('Instrument Panel'), _('AWE-1'), _('Weapons')}},
]]--

    -- from base_joystick_binding.lua...

    {combos = defaultDeviceAssignmentFor("roll")  ,  action = iCommandPlaneRoll		   , name = _('Roll')},
    {combos = defaultDeviceAssignmentFor("pitch") ,  action = iCommandPlanePitch	   , name = _('Pitch')},
    {combos = defaultDeviceAssignmentFor("rudder"),  action = JoyCmd.PlaneRudder	   , name = _('Rudder')},

	--Old throttle
    {combos = defaultDeviceAssignmentFor("thrust"),  action = iCommandPlaneThrustCommon, name = _('Thrust')},
    --Test throttle
	--{action = {},name = _('')},
	--{combos = defaultDeviceAssignmentFor("thrust"),  action = Keys.ThrottleAxisTest, name = _('Thrust')},
	--Needed for the new Carrier script, should replace the Real throttle later
	--{combos = defaultDeviceAssignmentFor("thrust"), action = device_commands.throttle_axis_mod 	,cockpit_device_id = devices.CARRIER ,name = _('Throttle Axis')},

    --{action = device_commands.ecm_msl_alert_axis_inner 	,cockpit_device_id = devices.RWR ,name = _('PRF volume (inner knob)')},
	--{action = device_commands.ecm_msl_alert_axis_outer 	,cockpit_device_id = devices.RWR ,name = _('MSL volume (outer knob)')},

	--{combos = defaultDeviceAssignmentFor("rudder"),action = device_commands.rudder_axis_mod 	,cockpit_device_id = devices.SFMEXTENDER ,name = _('Rudder Axis')},					

    --{action = device_commands.brake_axis_mod 	,cockpit_device_id = devices.AIRBRAKES ,name = _('single brake Axis')},

	--{action = iCommandPlaneThrustLeft			, name = _('Thrust Left')},
    --{action = iCommandPlaneThrustRight		, name = _('Thrust Right')},
    --{action = iCommandPlaneTrimPitchAbs		, name = _('Trim Pitch')},
    --{action = iCommandPlaneTrimRollAbs		, name = _('Trim Roll')},
    --{action = iCommandPlaneTrimRudderAbs		, name = _('Trim Rudder')},

    --{action = iCommandWheelBrake,		name = _('Wheel Brake')},
    --{action = iCommandLeftWheelBrake,	name = _('Wheel Brake Left')},
    --{action = iCommandRightWheelBrake,	name = _('Wheel Brake Right')},
	},
}

