hi, if u look at your keymap file, you'll see an array of numbers.
these probably map some specific function (like say deploying cm) to some key on your keyboard but i have some trouble deciphering what's what.
inputmap1.mdl
-
TurkeyXIII
- Posts: 1460
- Joined: Thu Dec 06, 2007 3:18 am
- Location: Melbourne, Aus
Last number in the bracket is the in-game command, this is them pasted from igc.h
CODEconst TrekKey TK_NoKeyMapping = -1; // Key not mapped to anything
const TrekKey TK_NextCommMsg = 0; // Scroll focus to next chat message in buffer
const TrekKey TK_PrevCommMsg = 1; // Scroll focus to previous chat message in buffer
const TrekKey TK_PrevWeapon = 2; // Select the previous weapon from inventory
const TrekKey TK_NextWeapon = 3; // Select the next weapon from inventory
const TrekKey TK_ToggleGroupFire = 4; // Toggle all weapons firing together
const TrekKey TK_PrevPart = 5; // Select the previous part from inventory
const TrekKey TK_NextPart = 6; // Select the next part from inventory
const TrekKey TK_MountPart = 7; // Mount the selected part
const TrekKey TK_ReplacePart = 8; // Replace the selected part
const TrekKey TK_UnmountPart = 9; // Unmount the selected part
const TrekKey TK_DropPart = 10; // Drop the selected part
const TrekKey TK_ZoomOut = 11; // Zoom out
const TrekKey TK_ZoomIn = 12; // Zoom in
const TrekKey TK_PitchUp = 17; // Turn the nose of the ship up
const TrekKey TK_PitchDown = 18; // Turn the nose of the ship down
const TrekKey TK_YawLeft = 19; // Turn the nose of the ship left
const TrekKey TK_YawRight = 20; // Turn the nose of the ship right
const TrekKey TK_RollLeft = 21; // Roll the ship to the left
const TrekKey TK_RollRight = 22; // Roll the ship to the right
const TrekKey TK_FOVOut = 23; // Adjust frame-of-view wider
const TrekKey TK_FOVIn = 24; // Adjust frame-of-view narrower
const TrekKey TK_MainMenu = 25; // View the main menu
const TrekKey TK_ViewFrontLeft = 26; // Look forward to the left
const TrekKey TK_ViewFrontRight = 27; // Look forward to the right
const TrekKey TK_ViewLeft = 28; // Look to the left
const TrekKey TK_ViewRight = 29; // Look to the right
const TrekKey TK_ViewExternal = 30; // View the ship from outside
const TrekKey TK_ViewFlyby = 31; // View an animated flyby of the ship
const TrekKey TK_ViewMissile = 32; // View from the missile camera
const TrekKey TK_ViewTarget = 33; // View the targeted item
const TrekKey TK_ViewChase = 34; // View the ship from a chase position
const TrekKey TK_ViewTurret = 35; // View from the ship's turret
const TrekKey TK_ViewBase = 36; // View from the base
const TrekKey TK_ViewSector = 37; // View the sector map
const TrekKey TK_ViewCommand = 38; // Display a tactical view of the sector
const TrekKey TK_CycleChatMsgs = 39; // Currently does nothing
const TrekKey TK_AcceptCommand = 40; // Accept pending command
const TrekKey TK_ClearCommand = 41; // Clear current command
const TrekKey TK_RejectCommand = 42; // current target == current command
const TrekKey TK_ToggleAutoPilot = 43; // Activate autopilot
const TrekKey TK_ThrustLeft = 44; // Apply thrust to cause ship to move left
const TrekKey TK_ThrustRight = 45; // Apply thrust to cause ship to move right
const TrekKey TK_ThrustUp = 46; // Apply thrust to cause ship to move up
const TrekKey TK_ThrustDown = 47; // Apply thrust to cause ship to move down
const TrekKey TK_ThrustForward = 48; // Apply thrust to cause ship to move forward
const TrekKey TK_ThrustBackward = 49; // Apply thrust to cause ship to move backward
const TrekKey TK_FireBooster = 50; // Fire booster rockets
const TrekKey TK_ConModeGameState = 51; // Game State Console Mode
const TrekKey TK_QuickChatMenu = 52; // Bring up quick chat menu
const TrekKey TK_ToggleLODSlider = 53; // Toggle the LOD Slider
const TrekKey TK_StartChat = 54; // Start a chat message
const TrekKey TK_FireWeapon = 55; // Fire the selected weapon
const TrekKey TK_FireMissile = 56; // Fire the selected missile
const TrekKey TK_LockVector = 57; // Lock the current heading and speed
const TrekKey TK_ThrottleUp = 58; // Increase the ship speed
const TrekKey TK_ThrottleDown = 59; // Decrease the ship speed
const TrekKey TK_ThrottleZero = 60; // Shut down engine
const TrekKey TK_Throttle33 = 61; // Throttle at one-third
const TrekKey TK_Throttle66 = 62; // Throttle at two-thirds
const TrekKey TK_ThrottleFull = 63; // Throttle at full
const TrekKey TK_ToggleBooster = 64; // Toggle booster rocket on/off
const TrekKey TK_LODUp = 65; // Move the LOD scale higher
const TrekKey TK_LODDown = 66; // Move the LOD scale lower
const TrekKey TK_ConModeCombat = 67; // Sets console mode to combat
const TrekKey TK_ConModeCommand = 68; // Sets console mode to command view
const TrekKey TK_ConModeNav = 69; // Sets console mode to navigation
const TrekKey TK_ConModeInventory = 70; // Sets console mode to inventory
const TrekKey TK_ConModeInvest = 71; // Sets console mode to investments
const TrekKey TK_ConModeTeam = 72; // Sets console mode to the team pane
const TrekKey TK_ViewRear = 73; // Sets the camera to point directly back
const TrekKey TK_Target = 74; // Target next object (any type)
const TrekKey TK_TargetNearest = 75; // Target nearest object (any type)
const TrekKey TK_TargetPrev = 76; // Target previous object (any type)
const TrekKey TK_TargetFriendly = 77; // Target next friendly ship
const TrekKey TK_TargetFriendlyNearest = 78; // Target nearest friendly ship
const TrekKey TK_TargetFriendlyPrev = 79; // Target previous friendly ship
const TrekKey TK_TargetEnemy = 80; // Target next enemy ship
const TrekKey TK_TargetEnemyNearest = 81; // Target nearest enemy ship
const TrekKey TK_TargetEnemyPrev = 82; // Target previous enemy ship
const TrekKey TK_TargetEnemyBase = 83; // Targets the nearest enemy base
const TrekKey TK_TargetEnemyBaseNearest = 84; // Targets the nearest (any) object
const TrekKey TK_TargetEnemyBasePrev = 85; // Targets the nearest enemy ship
const TrekKey TK_TargetFriendlyBase = 86; // Targets the nearest friendly ship
const TrekKey TK_TargetFriendlyBaseNearest = 87; // Targets the nearest object within a cone ahead
const TrekKey TK_TargetFriendlyBasePrev = 88; // Target previous friendly base
const TrekKey TK_TargetCommand = 89; // Target the object of current command
const TrekKey TK_TargetCenter = 90; // Target ship straight ahead
const TrekKey TK_TargetHostile = 91; // Target the ship causing most recent damage
const TrekKey TK_Suicide = 92; // Kill yourself
const TrekKey TK_ToggleGrid = 93; // Toggle visible grid in combat view
const TrekKey TK_ToggleCloak = 94; // Toggle cloaking
const TrekKey TK_DropMine = 95; // Drop a minefield
const TrekKey TK_Ripcord = 96; // Ripcord
const TrekKey TK_ViewRearLeft = 97; // Look back and to the left
const TrekKey TK_ViewRearRight = 99; // Look back and to the right
const TrekKey TK_Obsolete1 = 99; // Not used - feel free to reuse
const TrekKey TK_TargetSelf =100; // Target myself
const TrekKey TK_ToggleCollisions =101; // Toggle collision detection
const TrekKey TK_OccupyNextTurret =102; // Occupy the next available turret position
const TrekKey TK_TargetNothing =103; // Reset target so that nothing is targeted
const TrekKey TK_MatchSpeed =104; // Match speed with target
const TrekKey TK_ChatPageUp =105; // Scroll the chat pane one page up
const TrekKey TK_ChatPageDown =106; // Scroll the chat pane one page down
const TrekKey TK_ViewExternalOrbit =107; // Orbit the camera around the ship
const TrekKey TK_ViewExternalStation =108; // Have the camera face the station through the ship
const TrekKey TK_QuickChat1 =109; // Send quick chat 1
const TrekKey TK_QuickChat2 =110; // Send quick chat 2
const TrekKey TK_QuickChat3 =111; // Send quick chat 3
const TrekKey TK_QuickChat4 =112; // Send quick chat 4
const TrekKey TK_QuickChat5 =113; // Send quick chat 5
const TrekKey TK_QuickChat6 =114; // Send quick chat 6
const TrekKey TK_QuickChat7 =115; // Send quick chat 7
const TrekKey TK_QuickChat8 =116; // Send quick chat 8
const TrekKey TK_QuickChat9 =117; // Send quick chat 9
const TrekKey TK_QuickChat0 =118; // Send quick chat 10
const TrekKey TK_DebugTest1 = 119; // DebugTest1
const TrekKey TK_DebugTest2 = 120; // DebugTest2
const TrekKey TK_DebugTest3 = 121; // DebugTest3
const TrekKey TK_DebugTest4 = 122; // DebugTest4
const TrekKey TK_DebugTest5 = 123; // DebugTest5
const TrekKey TK_DebugTest6 = 124; // DebugTest6
const TrekKey TK_DebugTest7 = 125; // DebugTest7
const TrekKey TK_DebugTest8 = 126; // DebugTest8
const TrekKey TK_DebugTest9 = 127; // DebugTest9
const TrekKey TK_DropChaff = 128; // Drop Chaff
const TrekKey TK_ToggleCommand = 129; // Toggle command mode 3/4 vs. top down
const TrekKey TK_SwapWeapon1 = 130; // Swap the current weapon with cargo
const TrekKey TK_SwapWeapon2 = 131; // Swap the current weapon with cargo
const TrekKey TK_SwapWeapon3 = 132; // Swap the current weapon with cargo
const TrekKey TK_SwapWeapon4 = 133; // Swap the current weapon with cargo
const TrekKey TK_SwapTurret1 = 134; // Swap the current weapon with cargo
const TrekKey TK_SwapTurret2 = 135; // Swap the current weapon with cargo
const TrekKey TK_SwapTurret3 = 136; // Swap the current weapon with cargo
const TrekKey TK_SwapTurret4 = 137; // Swap the current weapon with cargo
const TrekKey TK_SwapMissile = 138; // Swap the current item with cargo
const TrekKey TK_SwapChaff = 139; // Swap the current item with cargo
const TrekKey TK_SwapShield = 140; // Swap the current item with cargo
const TrekKey TK_SwapCloak = 141; // Swap the current item with cargo
const TrekKey TK_SwapAfterburner = 142; // Swap the current item with cargo
const TrekKey TK_SwapMine = 143; // Swap the current item with cargo
const TrekKey TK_NextCargo = 144; // Rotate the selected cargo item
const TrekKey TK_ToggleWeapon1 = 145; // select the weapon for singe fire or group fire
const TrekKey TK_ToggleWeapon2 = 146; // select the weapon for singe fire or group fire
const TrekKey TK_ToggleWeapon3 = 147; // select the weapon for singe fire or group fire
const TrekKey TK_ToggleWeapon4 = 148; // select the weapon for singe fire or group fire
const TrekKey TK_DropCargo = 154; // drop the current cargo item
const TrekKey TK_Reload = 155;
const TrekKey TK_ExecuteCommand = 156; // accept and activate autopilot
const TrekKey TK_PauseTM = 157; // pause training missions
const TrekKey TK_TargetEnemyBomber = 158;
const TrekKey TK_TargetEnemyFighter = 159;
const TrekKey TK_TargetEnemyConstructor = 160;
const TrekKey TK_TargetEnemyMiner = 161;
const TrekKey TK_TargetEnemyMajorBase = 162;
const TrekKey TK_TargetFriendlyBomber = 163;
const TrekKey TK_TargetFriendlyFighter = 164;
const TrekKey TK_TargetFriendlyConstructor = 165;
const TrekKey TK_TargetFriendlyMiner = 166;
const TrekKey TK_TargetFriendlyLifepod = 167;
const TrekKey TK_TargetFriendlyMajorBase = 168;
const TrekKey TK_TargetFlag = 169;
const TrekKey TK_TargetArtifact = 170;
const TrekKey TK_TargetEnemyBomberNearest = 171;
const TrekKey TK_TargetEnemyFighterNearest = 172;
const TrekKey TK_TargetEnemyConstructorNearest = 173;
const TrekKey TK_TargetEnemyMinerNearest = 174;
const TrekKey TK_TargetEnemyMajorBaseNearest = 175;
const TrekKey TK_TargetFriendlyBomberNearest = 176;
const TrekKey TK_TargetFriendlyFighterNearest = 177;
const TrekKey TK_TargetFriendlyConstructorNearest = 178;
const TrekKey TK_TargetFriendlyMinerNearest = 179;
const TrekKey TK_TargetFriendlyLifepodNearest = 180;
const TrekKey TK_TargetFriendlyMajorBaseNearest = 181;
const TrekKey TK_TargetFlagNearest = 182;
const TrekKey TK_TargetArtifactNearest = 183;
const TrekKey TK_TargetEnemyBomberPrev = 184;
const TrekKey TK_TargetEnemyFighterPrev = 185;
const TrekKey TK_TargetEnemyConstructorPrev = 186;
const TrekKey TK_TargetEnemyMinerPrev = 187;
const TrekKey TK_TargetEnemyMajorBasePrev = 188;
const TrekKey TK_TargetFriendlyBomberPrev = 189;
const TrekKey TK_TargetFriendlyFighterPrev = 190;
const TrekKey TK_TargetFriendlyConstructorPrev = 191;
const TrekKey TK_TargetFriendlyMinerPrev = 192;
const TrekKey TK_TargetFriendlyLifepodPrev = 193;
const TrekKey TK_TargetFriendlyMajorBasePrev = 194;
const TrekKey TK_TargetFlagPrev = 195;
const TrekKey TK_TargetArtifactPrev = 196;
const TrekKey TK_TargetWarp = 197;
const TrekKey TK_TargetWarpNearest = 198;
const TrekKey TK_TargetWarpPrev = 199;
// debugging keys
const TrekKey TK_SkipTMGoal = 200; // skip a training mission goal
const TrekKey TK_IncreaseTMClockSpeed = 201; // increase clock speed in training missions
const TrekKey TK_DecreaseTMClockSpeed = 202; // decrease clock speed in training missions
const TrekKey TK_ResetTMClockSpeed = 203; // reset clock speed in training missions
const TrekKey TK_Help = 204; // help
const TrekKey TK_CycleRadar = 205; // help
const TrekKey TK_ConModeMiniTeam = 206; // Sets console mode to the mini-team pane
const TrekKey TK_CommandFinishTM = 207;
const TrekKey TK_RollModifier = 208;
const TrekKey TK_TrackCommandView = 209;
const TrekKey TK_ConModeTeleport = 210;
const TrekKey TK_ToggleMouse = 211;
const TrekKey TK_PromoteTurret1 = 212; // Swap the current weapon with cargo
const TrekKey TK_PromoteTurret2 = 213; // Swap the current weapon with cargo
const TrekKey TK_PromoteTurret3 = 214; // Swap the current weapon with cargo
const TrekKey TK_PromoteTurret4 = 215; // Swap the current weapon with cargo
const TrekKey TK_VoteYes = 216; // Vote Yes on the current issue
const TrekKey TK_VoteNo = 217; // Vote No on the current issue
const TrekKey TK_ScrnShot = 218; // Take a screen shot
const TrekKey TK_TargetAlliedBase = 219; //Imago 8/1/09
const TrekKey TK_TargetAlliedBaseNearest = 220;
const TrekKey TK_TargetAlliedBasePrev = 221;
const TrekKey TK_Max = 222; // Must be last trekkey
Middle number is the 'modifier'. That's whether the key needs to be pressed with shift or w/e to use the command. You'll notice there are a lot of 8s. I think this means that the command will work regardless of whether you're holding shift etc.
From trekinput.cpp:
First number is the keyboard input. As far as I can tell it's ASCII, but there's some weirdness with keys that don't have ascii counterparts, like PrtScn.
CODEconst TrekKey TK_NoKeyMapping = -1; // Key not mapped to anything
const TrekKey TK_NextCommMsg = 0; // Scroll focus to next chat message in buffer
const TrekKey TK_PrevCommMsg = 1; // Scroll focus to previous chat message in buffer
const TrekKey TK_PrevWeapon = 2; // Select the previous weapon from inventory
const TrekKey TK_NextWeapon = 3; // Select the next weapon from inventory
const TrekKey TK_ToggleGroupFire = 4; // Toggle all weapons firing together
const TrekKey TK_PrevPart = 5; // Select the previous part from inventory
const TrekKey TK_NextPart = 6; // Select the next part from inventory
const TrekKey TK_MountPart = 7; // Mount the selected part
const TrekKey TK_ReplacePart = 8; // Replace the selected part
const TrekKey TK_UnmountPart = 9; // Unmount the selected part
const TrekKey TK_DropPart = 10; // Drop the selected part
const TrekKey TK_ZoomOut = 11; // Zoom out
const TrekKey TK_ZoomIn = 12; // Zoom in
const TrekKey TK_PitchUp = 17; // Turn the nose of the ship up
const TrekKey TK_PitchDown = 18; // Turn the nose of the ship down
const TrekKey TK_YawLeft = 19; // Turn the nose of the ship left
const TrekKey TK_YawRight = 20; // Turn the nose of the ship right
const TrekKey TK_RollLeft = 21; // Roll the ship to the left
const TrekKey TK_RollRight = 22; // Roll the ship to the right
const TrekKey TK_FOVOut = 23; // Adjust frame-of-view wider
const TrekKey TK_FOVIn = 24; // Adjust frame-of-view narrower
const TrekKey TK_MainMenu = 25; // View the main menu
const TrekKey TK_ViewFrontLeft = 26; // Look forward to the left
const TrekKey TK_ViewFrontRight = 27; // Look forward to the right
const TrekKey TK_ViewLeft = 28; // Look to the left
const TrekKey TK_ViewRight = 29; // Look to the right
const TrekKey TK_ViewExternal = 30; // View the ship from outside
const TrekKey TK_ViewFlyby = 31; // View an animated flyby of the ship
const TrekKey TK_ViewMissile = 32; // View from the missile camera
const TrekKey TK_ViewTarget = 33; // View the targeted item
const TrekKey TK_ViewChase = 34; // View the ship from a chase position
const TrekKey TK_ViewTurret = 35; // View from the ship's turret
const TrekKey TK_ViewBase = 36; // View from the base
const TrekKey TK_ViewSector = 37; // View the sector map
const TrekKey TK_ViewCommand = 38; // Display a tactical view of the sector
const TrekKey TK_CycleChatMsgs = 39; // Currently does nothing
const TrekKey TK_AcceptCommand = 40; // Accept pending command
const TrekKey TK_ClearCommand = 41; // Clear current command
const TrekKey TK_RejectCommand = 42; // current target == current command
const TrekKey TK_ToggleAutoPilot = 43; // Activate autopilot
const TrekKey TK_ThrustLeft = 44; // Apply thrust to cause ship to move left
const TrekKey TK_ThrustRight = 45; // Apply thrust to cause ship to move right
const TrekKey TK_ThrustUp = 46; // Apply thrust to cause ship to move up
const TrekKey TK_ThrustDown = 47; // Apply thrust to cause ship to move down
const TrekKey TK_ThrustForward = 48; // Apply thrust to cause ship to move forward
const TrekKey TK_ThrustBackward = 49; // Apply thrust to cause ship to move backward
const TrekKey TK_FireBooster = 50; // Fire booster rockets
const TrekKey TK_ConModeGameState = 51; // Game State Console Mode
const TrekKey TK_QuickChatMenu = 52; // Bring up quick chat menu
const TrekKey TK_ToggleLODSlider = 53; // Toggle the LOD Slider
const TrekKey TK_StartChat = 54; // Start a chat message
const TrekKey TK_FireWeapon = 55; // Fire the selected weapon
const TrekKey TK_FireMissile = 56; // Fire the selected missile
const TrekKey TK_LockVector = 57; // Lock the current heading and speed
const TrekKey TK_ThrottleUp = 58; // Increase the ship speed
const TrekKey TK_ThrottleDown = 59; // Decrease the ship speed
const TrekKey TK_ThrottleZero = 60; // Shut down engine
const TrekKey TK_Throttle33 = 61; // Throttle at one-third
const TrekKey TK_Throttle66 = 62; // Throttle at two-thirds
const TrekKey TK_ThrottleFull = 63; // Throttle at full
const TrekKey TK_ToggleBooster = 64; // Toggle booster rocket on/off
const TrekKey TK_LODUp = 65; // Move the LOD scale higher
const TrekKey TK_LODDown = 66; // Move the LOD scale lower
const TrekKey TK_ConModeCombat = 67; // Sets console mode to combat
const TrekKey TK_ConModeCommand = 68; // Sets console mode to command view
const TrekKey TK_ConModeNav = 69; // Sets console mode to navigation
const TrekKey TK_ConModeInventory = 70; // Sets console mode to inventory
const TrekKey TK_ConModeInvest = 71; // Sets console mode to investments
const TrekKey TK_ConModeTeam = 72; // Sets console mode to the team pane
const TrekKey TK_ViewRear = 73; // Sets the camera to point directly back
const TrekKey TK_Target = 74; // Target next object (any type)
const TrekKey TK_TargetNearest = 75; // Target nearest object (any type)
const TrekKey TK_TargetPrev = 76; // Target previous object (any type)
const TrekKey TK_TargetFriendly = 77; // Target next friendly ship
const TrekKey TK_TargetFriendlyNearest = 78; // Target nearest friendly ship
const TrekKey TK_TargetFriendlyPrev = 79; // Target previous friendly ship
const TrekKey TK_TargetEnemy = 80; // Target next enemy ship
const TrekKey TK_TargetEnemyNearest = 81; // Target nearest enemy ship
const TrekKey TK_TargetEnemyPrev = 82; // Target previous enemy ship
const TrekKey TK_TargetEnemyBase = 83; // Targets the nearest enemy base
const TrekKey TK_TargetEnemyBaseNearest = 84; // Targets the nearest (any) object
const TrekKey TK_TargetEnemyBasePrev = 85; // Targets the nearest enemy ship
const TrekKey TK_TargetFriendlyBase = 86; // Targets the nearest friendly ship
const TrekKey TK_TargetFriendlyBaseNearest = 87; // Targets the nearest object within a cone ahead
const TrekKey TK_TargetFriendlyBasePrev = 88; // Target previous friendly base
const TrekKey TK_TargetCommand = 89; // Target the object of current command
const TrekKey TK_TargetCenter = 90; // Target ship straight ahead
const TrekKey TK_TargetHostile = 91; // Target the ship causing most recent damage
const TrekKey TK_Suicide = 92; // Kill yourself
const TrekKey TK_ToggleGrid = 93; // Toggle visible grid in combat view
const TrekKey TK_ToggleCloak = 94; // Toggle cloaking
const TrekKey TK_DropMine = 95; // Drop a minefield
const TrekKey TK_Ripcord = 96; // Ripcord
const TrekKey TK_ViewRearLeft = 97; // Look back and to the left
const TrekKey TK_ViewRearRight = 99; // Look back and to the right
const TrekKey TK_Obsolete1 = 99; // Not used - feel free to reuse
const TrekKey TK_TargetSelf =100; // Target myself
const TrekKey TK_ToggleCollisions =101; // Toggle collision detection
const TrekKey TK_OccupyNextTurret =102; // Occupy the next available turret position
const TrekKey TK_TargetNothing =103; // Reset target so that nothing is targeted
const TrekKey TK_MatchSpeed =104; // Match speed with target
const TrekKey TK_ChatPageUp =105; // Scroll the chat pane one page up
const TrekKey TK_ChatPageDown =106; // Scroll the chat pane one page down
const TrekKey TK_ViewExternalOrbit =107; // Orbit the camera around the ship
const TrekKey TK_ViewExternalStation =108; // Have the camera face the station through the ship
const TrekKey TK_QuickChat1 =109; // Send quick chat 1
const TrekKey TK_QuickChat2 =110; // Send quick chat 2
const TrekKey TK_QuickChat3 =111; // Send quick chat 3
const TrekKey TK_QuickChat4 =112; // Send quick chat 4
const TrekKey TK_QuickChat5 =113; // Send quick chat 5
const TrekKey TK_QuickChat6 =114; // Send quick chat 6
const TrekKey TK_QuickChat7 =115; // Send quick chat 7
const TrekKey TK_QuickChat8 =116; // Send quick chat 8
const TrekKey TK_QuickChat9 =117; // Send quick chat 9
const TrekKey TK_QuickChat0 =118; // Send quick chat 10
const TrekKey TK_DebugTest1 = 119; // DebugTest1
const TrekKey TK_DebugTest2 = 120; // DebugTest2
const TrekKey TK_DebugTest3 = 121; // DebugTest3
const TrekKey TK_DebugTest4 = 122; // DebugTest4
const TrekKey TK_DebugTest5 = 123; // DebugTest5
const TrekKey TK_DebugTest6 = 124; // DebugTest6
const TrekKey TK_DebugTest7 = 125; // DebugTest7
const TrekKey TK_DebugTest8 = 126; // DebugTest8
const TrekKey TK_DebugTest9 = 127; // DebugTest9
const TrekKey TK_DropChaff = 128; // Drop Chaff
const TrekKey TK_ToggleCommand = 129; // Toggle command mode 3/4 vs. top down
const TrekKey TK_SwapWeapon1 = 130; // Swap the current weapon with cargo
const TrekKey TK_SwapWeapon2 = 131; // Swap the current weapon with cargo
const TrekKey TK_SwapWeapon3 = 132; // Swap the current weapon with cargo
const TrekKey TK_SwapWeapon4 = 133; // Swap the current weapon with cargo
const TrekKey TK_SwapTurret1 = 134; // Swap the current weapon with cargo
const TrekKey TK_SwapTurret2 = 135; // Swap the current weapon with cargo
const TrekKey TK_SwapTurret3 = 136; // Swap the current weapon with cargo
const TrekKey TK_SwapTurret4 = 137; // Swap the current weapon with cargo
const TrekKey TK_SwapMissile = 138; // Swap the current item with cargo
const TrekKey TK_SwapChaff = 139; // Swap the current item with cargo
const TrekKey TK_SwapShield = 140; // Swap the current item with cargo
const TrekKey TK_SwapCloak = 141; // Swap the current item with cargo
const TrekKey TK_SwapAfterburner = 142; // Swap the current item with cargo
const TrekKey TK_SwapMine = 143; // Swap the current item with cargo
const TrekKey TK_NextCargo = 144; // Rotate the selected cargo item
const TrekKey TK_ToggleWeapon1 = 145; // select the weapon for singe fire or group fire
const TrekKey TK_ToggleWeapon2 = 146; // select the weapon for singe fire or group fire
const TrekKey TK_ToggleWeapon3 = 147; // select the weapon for singe fire or group fire
const TrekKey TK_ToggleWeapon4 = 148; // select the weapon for singe fire or group fire
const TrekKey TK_DropCargo = 154; // drop the current cargo item
const TrekKey TK_Reload = 155;
const TrekKey TK_ExecuteCommand = 156; // accept and activate autopilot
const TrekKey TK_PauseTM = 157; // pause training missions
const TrekKey TK_TargetEnemyBomber = 158;
const TrekKey TK_TargetEnemyFighter = 159;
const TrekKey TK_TargetEnemyConstructor = 160;
const TrekKey TK_TargetEnemyMiner = 161;
const TrekKey TK_TargetEnemyMajorBase = 162;
const TrekKey TK_TargetFriendlyBomber = 163;
const TrekKey TK_TargetFriendlyFighter = 164;
const TrekKey TK_TargetFriendlyConstructor = 165;
const TrekKey TK_TargetFriendlyMiner = 166;
const TrekKey TK_TargetFriendlyLifepod = 167;
const TrekKey TK_TargetFriendlyMajorBase = 168;
const TrekKey TK_TargetFlag = 169;
const TrekKey TK_TargetArtifact = 170;
const TrekKey TK_TargetEnemyBomberNearest = 171;
const TrekKey TK_TargetEnemyFighterNearest = 172;
const TrekKey TK_TargetEnemyConstructorNearest = 173;
const TrekKey TK_TargetEnemyMinerNearest = 174;
const TrekKey TK_TargetEnemyMajorBaseNearest = 175;
const TrekKey TK_TargetFriendlyBomberNearest = 176;
const TrekKey TK_TargetFriendlyFighterNearest = 177;
const TrekKey TK_TargetFriendlyConstructorNearest = 178;
const TrekKey TK_TargetFriendlyMinerNearest = 179;
const TrekKey TK_TargetFriendlyLifepodNearest = 180;
const TrekKey TK_TargetFriendlyMajorBaseNearest = 181;
const TrekKey TK_TargetFlagNearest = 182;
const TrekKey TK_TargetArtifactNearest = 183;
const TrekKey TK_TargetEnemyBomberPrev = 184;
const TrekKey TK_TargetEnemyFighterPrev = 185;
const TrekKey TK_TargetEnemyConstructorPrev = 186;
const TrekKey TK_TargetEnemyMinerPrev = 187;
const TrekKey TK_TargetEnemyMajorBasePrev = 188;
const TrekKey TK_TargetFriendlyBomberPrev = 189;
const TrekKey TK_TargetFriendlyFighterPrev = 190;
const TrekKey TK_TargetFriendlyConstructorPrev = 191;
const TrekKey TK_TargetFriendlyMinerPrev = 192;
const TrekKey TK_TargetFriendlyLifepodPrev = 193;
const TrekKey TK_TargetFriendlyMajorBasePrev = 194;
const TrekKey TK_TargetFlagPrev = 195;
const TrekKey TK_TargetArtifactPrev = 196;
const TrekKey TK_TargetWarp = 197;
const TrekKey TK_TargetWarpNearest = 198;
const TrekKey TK_TargetWarpPrev = 199;
// debugging keys
const TrekKey TK_SkipTMGoal = 200; // skip a training mission goal
const TrekKey TK_IncreaseTMClockSpeed = 201; // increase clock speed in training missions
const TrekKey TK_DecreaseTMClockSpeed = 202; // decrease clock speed in training missions
const TrekKey TK_ResetTMClockSpeed = 203; // reset clock speed in training missions
const TrekKey TK_Help = 204; // help
const TrekKey TK_CycleRadar = 205; // help
const TrekKey TK_ConModeMiniTeam = 206; // Sets console mode to the mini-team pane
const TrekKey TK_CommandFinishTM = 207;
const TrekKey TK_RollModifier = 208;
const TrekKey TK_TrackCommandView = 209;
const TrekKey TK_ConModeTeleport = 210;
const TrekKey TK_ToggleMouse = 211;
const TrekKey TK_PromoteTurret1 = 212; // Swap the current weapon with cargo
const TrekKey TK_PromoteTurret2 = 213; // Swap the current weapon with cargo
const TrekKey TK_PromoteTurret3 = 214; // Swap the current weapon with cargo
const TrekKey TK_PromoteTurret4 = 215; // Swap the current weapon with cargo
const TrekKey TK_VoteYes = 216; // Vote Yes on the current issue
const TrekKey TK_VoteNo = 217; // Vote No on the current issue
const TrekKey TK_ScrnShot = 218; // Take a screen shot
const TrekKey TK_TargetAlliedBase = 219; //Imago 8/1/09
const TrekKey TK_TargetAlliedBaseNearest = 220;
const TrekKey TK_TargetAlliedBasePrev = 221;
const TrekKey TK_Max = 222; // Must be last trekkey
Middle number is the 'modifier'. That's whether the key needs to be pressed with shift or w/e to use the command. You'll notice there are a lot of 8s. I think this means that the command will work regardless of whether you're holding shift etc.
From trekinput.cpp:
Code: Select all
const int ModifierNone = 0;
const int ModifierShift = 1;
const int ModifierControl = 2;
const int ModifierAlt = 4;
const int ModifierAny = 8;
Last edited by TurkeyXIII on Fri Feb 25, 2011 11:39 am, edited 1 time in total.
QUOTE (Randall Munroe)14.2: Turkey consumption rate of the average American in milligrams per minute[/quote]


You can find the numbers here:TurkeyXIII wrote:QUOTE (TurkeyXIII @ Feb 25 2011, 12:38 PM) First number is the keyboard input. As far as I can tell it's ASCII, but there's some weirdness with keys that don't have ascii counterparts, like PrtScn.
http://msdn.microsoft.com/en-us/library/dd...1(v=VS.85).aspx (Windows SDK: winuser.h)
The Escapist (Justin Emerson) @ Dec 21 2010, 02:33 PM:
The history of open-source Allegiance is paved with the bodies of dead code branches, forum flame wars, and personal vendettas. But a community remains because people still love the game.
excellent, thank you so much turkey and pkk
following skutch's most excellent keymapping illustrations, im working on a way to automatically generate pictures of your keyboard, color coded according to the keymap file you submit.
that way, not only can we have a repository of inputmap1.mdl files, we can have a picture of what they represent right next to it. the resulting database can be displayed on a webpage for new players to browse through and select whichever one they want to download and try out.
im taking feature suggestions, comments, and also interested if others have already done something simliar (so i dont reinvent the wheel)
i have most of the pieces ready now, (sample inputmaps), color coded buttons, keyboard template. its just a matter of mapping coordinates on the template to "color" in specific buttons according to the inputmap1.mdl file.
following skutch's most excellent keymapping illustrations, im working on a way to automatically generate pictures of your keyboard, color coded according to the keymap file you submit.
that way, not only can we have a repository of inputmap1.mdl files, we can have a picture of what they represent right next to it. the resulting database can be displayed on a webpage for new players to browse through and select whichever one they want to download and try out.
im taking feature suggestions, comments, and also interested if others have already done something simliar (so i dont reinvent the wheel)
i have most of the pieces ready now, (sample inputmaps), color coded buttons, keyboard template. its just a matter of mapping coordinates on the template to "color" in specific buttons according to the inputmap1.mdl file.
Last edited by fwiffo on Sat Feb 26, 2011 12:56 am, edited 1 time in total.








