Talk:Battlefield: Bad Company 2

About this board


Previous page history was archived for backup purposes at Talk:Battlefield: Bad Company 2/LQT Archive 1 on 2018-02-15.

By clicking "Add topic", you agree to the terms of use for this wiki.
Mirh (talkcontribs)

You can find these by opening game executable with a hex editor.
These can be used in the <field name="Key"></field> tags scattered around the *.dbx settings files

InputDeviceKeys
IDK_Undefined
IDK_Pause
IDK_MediaSelect
IDK_Mail
IDK_MyComputer
IDK_WebBack
IDK_WebForward
IDK_WebStop
IDK_WebRefresh
IDK_WebFavorites
IDK_WebSearch
IDK_Wake
IDK_Sleep
IDK_Power
IDK_AppMenu
IDK_RightWin
IDK_LeftWin
IDK_Delete
IDK_Insert
IDK_PageDown
IDK_ArrowDown
IDK_End
IDK_ArrowRight
IDK_ArrowLeft
IDK_PageUp
IDK_ArrowUp
IDK_Home
IDK_RightAlt
IDK_PrintScreen
IDK_Divide
IDK_NumpadComma
IDK_WebHome
IDK_VolumeUp
IDK_VolumeDown
IDK_MediaStop
IDK_PlayPause
IDK_Calculator
IDK_Mute
IDK_RightCtrl
IDK_NumpadEnter
IDK_NextTrack
IDK_Unlabeled
IDK_Ax
IDK_Stop
IDK_Kanji
IDK_Underline
IDK_Colon
IDK_At
IDK_PrevTrack
IDK_NumpadEquals
IDK_Yen
IDK_NoConvert
IDK_Convert
IDK_Kana
IDK_F15
IDK_F14
IDK_F13
IDK_F12
IDK_F11
IDK_OEM_102
IDK_Decimal
IDK_Numpad0
IDK_Numpad3
IDK_Numpad2
IDK_Numpad1
IDK_Add
IDK_Numpad6
IDK_Numpad5
IDK_Numpad4
IDK_Subtract
IDK_Numpad9
IDK_Numpad8
IDK_Numpad7
IDK_ScrollLock
IDK_Numlock
IDK_F10
IDK_F9
IDK_F8
IDK_F7
IDK_F6
IDK_F5
IDK_F4
IDK_F3
IDK_F2
IDK_F1
IDK_Capital
IDK_Space
IDK_LeftAlt
IDK_Multiply
IDK_RightShift
IDK_Slash
IDK_Period
IDK_Comma
IDK_M
IDK_N
IDK_B
IDK_V
IDK_C
IDK_X
IDK_Z
IDK_Backslash
IDK_LeftShift
IDK_Grave
IDK_Apostrophe
IDK_Semicolon
IDK_L
IDK_K
IDK_J
IDK_H
IDK_G
IDK_F
IDK_D
IDK_S
IDK_A
IDK_LeftCtrl
IDK_Enter
IDK_RightBracket
IDK_LeftBracket
IDK_P
IDK_O
IDK_I
IDK_U
IDK_Y
IDK_T
IDK_R
IDK_E
IDK_W
IDK_Q
IDK_Tab
IDK_Backspace
IDK_Equals
IDK_Minus
IDK_0
IDK_9
IDK_8
IDK_7
IDK_6
IDK_5
IDK_4
IDK_3
IDK_2
IDK_1
IDK_Escape
IDK_None
InputDevicePOVs
IDP_POV_Undefined
IDP_POV_2
IDP_POV_1
IDP_POV_0
InputDeviceMouseButtons
IDB_Button_Undefined
IDB_Button_7
IDB_Button_6
IDB_Button_5
IDB_Button_4
IDB_Button_3
IDB_Button_2    <----- Middle Mouse Button
IDB_Button_1    <----- Right Mouse Button
IDB_Button_0    <----- Left Mouse Button
InputDevicePadButtons
IDB_Undefined
IDB_Rtrigger2    <----- R1/RB (button 5)
IDB_Ltrigger2    <----- L1/LB (button 6)
IDB_Rtrigger    <----- START (button 8)
IDB_Ltrigger    <----- SELECT/BACK (button 7)
IDB_alt    <----- Left stick press (button 9)
IDB_start    <----- Right stick press (button 10)
IDB_Rthumb    <----- button 12
IDB_Lthumb    <----- button 11
IDB_Rtopright
IDB_Rtopleft
IDB_Rright    <----- □/X (button 3)
IDB_Rleft    <----- ✕/A (button 1)
IDB_Rdown    <-----  ◯/B (button 2)
IDB_Rup    <----- △/Y (button 4)
IDB_Lright
IDB_Lleft
IDB_Ldown
IDB_Lup
InputDeviceAxes
IDA_Undefined
IDA_Axis7Y
IDA_Axis7X
IDA_Axis6Y
IDA_Axis6X
IDA_Axis5Y
IDA_Axis5X
IDA_Axis4Y
IDA_Axis4X
IDA_Axis3Y
IDA_Axis3X
IDA_Axis2Y
IDA_Axis1YNeg
IDA_Axis1XNeg
IDA_Axis1YPos
IDA_Axis1XPos
IDA_Axis1Y
IDA_Axis1X
IDA_Axis0YNeg
IDA_Axis0XNeg
IDA_Axis0YPos
IDA_Axis0XPos
IDA_Axis0Y
These, plus IDA_Axis2X (mouse wheel) and IDA_Axis0X, which are in another position in the exe.

IDA_Axis0X/IDA_Axis0Y is the controller left stick when in PadInputActionData GUIDs. Mouse when in MouseInputActionData ones

IDA_Axis1X is the triggers (Z?) axis in XInput devices.

EDIT(final): Ok, to sum up.. this game only reads buttons from 1 to 12 and X/Y/Z Axis + Z Rotation.
Nothing else, not even DPAD/POV. After many attempts with SCP vJoy DirectInput device there weren't others accepted.

Other people seem to just have had problems with deadzones..
and solved everything by tinkering with config files, but imo, that must not be the whole story.

At the moment, the best way to play the game with a controller seems some combinations of XInput Plus and conventional remapping softwares like antimicro

Reply to "Input strokes codes"
Mirh (talkcontribs)
A kind of extended naming for actions codes can be found in <path-to-game>\Dist\win32\async\startup-00.fbrb\Input\InputConfiguration.dbx
On foot (infantry.dbx)
Function Name Code
Fire / Use ConceptFire A0DF9654-2A2F-11E5-AB29-DF52BC3B2788
Zoom / Detonate C4 ConceptZoom A0DF9658-2A2F-11E5-AB29-DF52BC3B2788
Reload ConceptReload A0DF965C-2A2F-11E5-AB29-DF52BC3B2788
Throw Grenade ConceptSelectInventoryItem6 A0DF9660-2A2F-11E5-AB29-DF52BC3B2788
Melee Attack ConceptSelectMeleeWeapon A0DF9664-2A2F-11E5-AB29-DF52BC3B2788
Walk Forward ConceptMoveFB A0DF966F-2A2F-11E5-AB29-DF52BC3B2788
Walk Backward ConceptMoveFB A0DF966F-2A2F-11E5-AB29-DF52BC3B2788
Strafe Left ConceptMoveLR A0DF9676-2A2F-11E5-AB29-DF52BC3B2788
Strafe Right ConceptMoveLR A0DF9676-2A2F-11E5-AB29-DF52BC3B2788
Turn Left ConceptYaw A0DF9684-2A2F-11E5-AB29-DF52BC3B2788
Turn Right ConceptYaw A0DF9684-2A2F-11E5-AB29-DF52BC3B2788
Look Up ConceptPitch A0DF967D-2A2F-11E5-AB29-DF52BC3B2788
Look Down ConceptPitch A0DF967D-2A2F-11E5-AB29-DF52BC3B2788
Jump / Parachute ConceptJump A0DF968B-2A2F-11E5-AB29-DF52BC3B2788
Sprint ConceptSprint A0DF968F-2A2F-11E5-AB29-DF52BC3B2788
Crouch ConceptChangePose A0DF9693-2A2F-11E5-AB29-DF52BC3B2788
Select Pistol ConceptSelectInventoryItem1 A0DF969B-2A2F-11E5-AB29-DF52BC3B2788
Select Rifle ConceptSelectInventoryItem2 A0DF969F-2A2F-11E5-AB29-DF52BC3B2788
Select Gadget 1 ConceptSelectInventoryItem3 A0DF96A3-2A2F-11E5-AB29-DF52BC3B2788
Select Gadget 2 ConceptSelectInventoryItem4 A0DF96A7-2A2F-11E5-AB29-DF52BC3B2788
Select Laser ConceptSelectInventoryItem5 A0DF96AB-2A2F-11E5-AB29-DF52BC3B2788
Next Item ConceptCyclePrimaryInventory A0DF9668-2A2F-11E5-AB29-DF52BC3B2788
Prev Item ConceptCyclePrimaryInventory A0DF9668-2A2F-11E5-AB29-DF52BC3B2788
Aside of this, there are also ConceptLie and ConceptAltFire identifiers that are not present in the in-game menu
On foot (shared.dbx)
These settings are mirrored in all the other files
Function Name Code
Enter / Exit Vehicle ConceptChangeVehicle A0DF96F0-2A2F-11E5-AB29-DF52BC3B2788
Change Camera ConceptToggleCamera A0DF96F2-2A2F-11E5-AB29-DF52BC3B2788
Issue Order / Communicate / Spot ConceptCommMenu1 A0DF9712-2A2F-11E5-AB29-DF52BC3B2788
Map ConceptMapZoom A0DF96F4-2A2F-11E5-AB29-DF52BC3B2788
Chat All ConceptSayAllChat A0DF96F8-2A2F-11E5-AB29-DF52BC3B2788
Chat Team ConceptTeamChat A0DF96FC-2A2F-11E5-AB29-DF52BC3B2788
Chat Squad ConceptSquadChat A0DF9700-2A2F-11E5-AB29-DF52BC3B2788
Push To Talk ConceptPushToTalk A0DF9710-2A2F-11E5-AB29-DF52BC3B2788
Select Seat 1 ConceptSelectEntry0 A0DF9704-2A2F-11E5-AB29-DF52BC3B2788
Select Seat 2 ConceptSelectEntry1 A0DF9706-2A2F-11E5-AB29-DF52BC3B2788
Select Seat 3 ConceptSelectEntry2 A0DF9708-2A2F-11E5-AB29-DF52BC3B2788
Select Seat 4 ConceptSelectEntry3 A0DF970A-2A2F-11E5-AB29-DF52BC3B2788
Select Seat 5 ConceptSelectEntry4 A0DF970C-2A2F-11E5-AB29-DF52BC3B2788
Aside of this, there's also ConceptSelectEntry5 identifier that's not present in the in-game menu
In vehicle (land.dbx)
Function Name Code
Fire ConceptFire A0DF96B4-2A2F-11E5-AB29-DF52BC3B2788
Accellerate ConceptMoveFB A0DF96B8-2A2F-11E5-AB29-DF52BC3B2788
Brake / Reverse ConceptBrake A0DF96BC-2A2F-11E5-AB29-DF52BC3B2788
Turn Left ConceptMoveLR A0DF96C0-2A2F-11E5-AB29-DF52BC3B2788
Turn Right ConceptMoveLR A0DF96C0-2A2F-11E5-AB29-DF52BC3B2788
Aim Turret Up ConceptPitch A0DF96C7-2A2F-11E5-AB29-DF52BC3B2788
Aim Turret Down ConceptPitch A0DF96C7-2A2F-11E5-AB29-DF52BC3B2788
Aim Turret Left ConceptRoll A0DF96CE-2A2F-11E5-AB29-DF52BC3B2788
Aim Turret Right ConceptRoll A0DF96CE-2A2F-11E5-AB29-DF52BC3B2788
Snap View ConceptSnapViewCamera A0DF96D5-2A2F-11E5-AB29-DF52BC3B2788
Zoom / Vehicle specialization ConceptZoom A0DF96D9-2A2F-11E5-AB29-DF52BC3B2788
Look Left ConceptCameraYaw A0DF96E4-2A2F-11E5-AB29-DF52BC3B2788
Look Right ConceptCameraYaw A0DF96E4-2A2F-11E5-AB29-DF52BC3B2788
Look Up ConceptCameraPitch A0DF96DD-2A2F-11E5-AB29-DF52BC3B2788
Look Down ConceptCameraPitch A0DF96DD-2A2F-11E5-AB29-DF52BC3B2788
Cycle Radio ConceptSelectInventoryItem9 A0DF96EB-2A2F-11E5-AB29-DF52BC3B2788
As pilot (air.dbx)
Function Name Code
Fire ConceptFire A0DF960D-2A2F-11E5-AB29-DF52BC3B2788
Ascend ConceptMoveFB A0DF9611-2A2F-11E5-AB29-DF52BC3B2788
Descend ConceptMoveFB A0DF9611-2A2F-11E5-AB29-DF52BC3B2788
Pitch Up ConceptPitch A0DF9618-2A2F-11E5-AB29-DF52BC3B2788
Pitch Down ConceptPitch A0DF9618-2A2F-11E5-AB29-DF52BC3B2788
Yaw Left ConceptYaw A0DF961F-2A2F-11E5-AB29-DF52BC3B2788
Yaw Right ConceptYaw A0DF961F-2A2F-11E5-AB29-DF52BC3B2788
Roll Left ConceptRoll A0DF9626-2A2F-11E5-AB29-DF52BC3B2788
Roll Right ConceptRoll A0DF9626-2A2F-11E5-AB29-DF52BC3B2788
Snap View ConceptSnapViewCamera A0DF9631-2A2F-11E5-AB29-DF52BC3B2788
Free Look ConceptZoom A0DF962D-2A2F-11E5-AB29-DF52BC3B2788
Vehicle specialization ConceptAltFire A0DF964B-2A2F-11E5-AB29-DF52BC3B2788
Look Left ConceptCameraYaw A0DF963C-2A2F-11E5-AB29-DF52BC3B2788
Look Right ConceptCameraYaw A0DF963C-2A2F-11E5-AB29-DF52BC3B2788
Look Up ConceptCameraPitch A0DF9635-2A2F-11E5-AB29-DF52BC3B2788
Look Down ConceptCameraPitch A0DF9635-2A2F-11E5-AB29-DF52BC3B2788
UAV Ascend ConceptJump A0DF9643-2A2F-11E5-AB29-DF52BC3B2788
UAV Descend ConceptChangePose A0DF9647-2A2F-11E5-AB29-DF52BC3B2788
Cycle Radio ConceptSelectInventoryItem9 A0DF964F-2A2F-11E5-AB29-DF52BC3B2788
Oddly, ConceptCamera commands can be assigned to any button, even those assigned to shared commands or other planes actions
Hidden (game executable and startup-00.fbrb only)
Function Name Code
N/A ConceptToggleParachute N/A
N/A ConceptSquadLeaderChat N/A
N/A ConceptVoiceFunction1 N/A
N/A ConceptChatMenu N/A
N/A ConceptLargeMap N/A
N/A ConceptSpawnMenu N/A
N/A ConceptSelect N/A
N/A ConceptDecline N/A
N/A ConceptAccept N/A
N/A ConceptCommMenu2 N/A
N/A ConceptCancel N/A
N/A ConceptMenu N/A
N/A ConceptScoreboard N/A
N/A ConceptMapThreeDimensional N/A
N/A ConceptMapSize N/A
N/A ConceptSelectEntry7 N/A
N/A ConceptSelectEntry6 N/A
N/A ConceptNextPosition N/A
N/A ConceptGearDown N/A
N/A ConceptGearUp N/A
N/A ConceptClutch N/A
N/A ConceptHandBrake N/A
N/A ConceptSelectInventoryItem8 N/A
N/A ConceptSelectInventoryItem7 N/A
N/A ConceptCycleSecondaryInventory N/A
N/A ConceptPrevInventoryItem N/A
N/A ConceptNextInventoryItem N/A
N/A ConceptDrop N/A
N/A ConceptPickUp N/A
N/A ConceptInteract N/A
N/A ConceptFireCountermeasure N/A
N/A ConceptMoveRight N/A
N/A ConceptMoveLeft N/A
N/A ConceptMoveBackward N/A
N/A ConceptMoveForward N/A
Commands already present in the previous sections were omitted

Interestingly forward and backward movements for infantry are using the same "concept", while for vehicles they are two separate ones.

Also some actions (for example, selecting seats) have just a single three lines long GUID, while others (for example view and character/plane movements) can be as big as 6 eight lines long GUIDs

EDIT: ok, I checked the X360 game, and the only reference to controls I could find was in \dist\xenon\async\startup-00.fbrb\Menu\shared_config.dbx
Aside of a single byte it's the same you can find in the Windows version.
This last has additional folders, probably to account of the ability to customize commands (namely in Input\)

Reply to "Functions names in settings files"
There are no older topics