Unbind Controls in Battlefield: Bad Company 2

Battlefield: Bad Company 2 for the PC is a mess, the shipped product had issues that were pointed out in the Beta, but alas…

Update: I think the only item that needs to be removed to fix the spinning and not being able to move left right, is the mouse look right, left and look up, down. It appears that there is a conflict with the mouse action and the shared joystick command.

My focus here is about removing the Joystick input from game options. I had originally dug through the files in the beta trying enable the throttle and trigger for my Logitek 2.4 wireless joystick, since there is apparently no way to remove (or add some joystick buttons) from the in-game option, I started digging through the input files to add or remove unwanted lines. The problem seems to be caused by the controls being designed for console game pads.

Then when I went to play the retail version, my player would not strafe or turn right or left in vehicles, (and I could type in game using those keys). I was messing with the mouse axis “look left, right” and the “look up, down” I think I switched them and the problem went away, so I was able to play. My clan-mate would go in game and spin in circles uncontrollably, with no joystick ever have been installed on the machine. He was also unable to set or unbind keys in game. This procedure fixed his problem.

They are no longer simple lines like this one from Battlefield 2 “ControlMap.addButtonToTriggerMapping c_PIFire IDFGameController_0 IDButton_0 0 0″ which would point to the joystick trigger button.

This is the section pointing to the pad input “joystick” in the air.dbx file.

<instance guid=”D7E8198E-FAD3-4F50-AE79-8574A4460AC1″ type=”GameSharedResources.InputActionsData”>
<field name=”ConceptIdentifier”>ConceptFire</field>
<array name=”InputActions”>
<item>GUIDC5A60A57-965B-408A-98A9-A38F1A095665</item>
<item>GUID4D787188-5A01-42B6-8888-3898E48F4613</item>
<item>GUID78CFF6B2-E920-43E6-91E5-7714EB651E2B</item>
~ trimmed area pointing to mouse and keyboard~
<instance guid=”78CFF6B2-E920-43E6-91E5-7714EB651E2B” type=”GameSharedResources.PadInputActionData”>
<field name=”IsAnalog”>false</field>
<field name=”NegateValue”>false</field>
<field name=”Axis”>IDA_Undefined</field>
<field name=”NormalizeInput”>false</field>
<field name=”ScaleValue”>1</field>
<field name=”UseSquareInput”>false</field>
<field name=”Button”>IDB_Rdown</field>
<field name=”Pov”>IDP_POV_Undefined</field>
</instance>

Plain english eh?

Okay, so here is a detailed breakdown of removing the joystick options from Battlefield Bad Company 2. Any reference to “pad input,” will mean “joystick.”

First game is not running, locate the BFBC2 folder in your documents, open input folder, you will see four files, air.dbx, infantry.dbx, land.dbx, shared.dbx, (you might not be able to see the .dbx extension of the files). Select the four files, copy and paste to the same folder, this will make a copy of the originals.

This will remove all the joystick bindings from in game so if you still want to use the stick to fly and keys other than the throttle and trigger, that will take more detailed removal of some inputs.

You will repeat this procedure for each of the four files. For these examples I will be using the air.dbx, click file to open, select what to open with, choose to open with notepad, un-check make default for this file type. Starting from the top we will be looking for “<field name=”ConceptIdentifier”>Action</field>,” there will be many in each of the four files. From that we start our search to identify which “<item>GUID” line to remove. In the example above, we see that “<instance guid=”78CFF6B2-E920-43E6-91E5-7714EB651E2B” type=”GameSharedResources.PadInputActionData”>” matches the third item in the “concept identifier” paragraph. Now that we identified which item line refers to pad action, we will delete the line from the “concept identifier” paragraph. If there is three of the item GUID’s you will be removing one. If there is six, you will be removing two, so find both of the items that point to the pad input. Here is pictures of the above file before and after.

The numbers will be different for each install so don’t be looking for ones that match mine. After you have removed all the pad inputs lines from each of the four files, you should be able to start the game and play! (EA, Dice you can contact me to find where to send the check for my emergency fix). Good luck, and don’t forget to make copies of the files before you start!

Let me know if this is not clear enough I might be able to elaborate more on the subject.

Did I mention the annoying part when launched from Steam you get a pop-up, instead of the game launching, oh well must be Valve wanting to be more EA like, (those that have played Battlefield games, know of the multiple clicks, log in, select soldier, select clan tag, select… you get the point).


  • guest

    this didnt work for me i changed everything and saved the files now i still see joystick commands…. hmmm idk what to do

  • Odaecom

    Sorry to hear that the fix didn't work for you. It is a long procedure and can be a pain to get right. Others have made it work from the EA forums.
    http://forum.ea.com/eaforum/posts/list/426017.page
    Might want to try again, and go through every line looking for the padinput.

  • pk

    still not working man…..there are no joystick commands in the game menu…..but the problem still persisits???????????

  • Odaecom

    You should then also remove the mouse commands then add the ones you need back in game. As I think there is an axis conflict between the joystick and mouse.

  • Eric

    There's an easier, safer way to unbind, IMO. See my post here http://forum.ea.com/eaforum/posts/list/0/425537…

  • http://Odaecom.com Odaecom

    Yeah it is a tricky like I mentioned, some people had commented that they couldn't even select the item to change it, (like my clan-mate). As my update points out that I feel there is a conflict that is causing the issues, and just changing the mouse inputs might fix it.

  • Trico

    Why didn't you just upload the modified .dbx files for us to use instead of such a painstakingly boring way to make us all want to kick ourselves?

  • http://Odaecom.com Odaecom

    I had given my .dbx files to my friend to try, but then his game didnt start.
    The GUID item string seems to be different for each install. If yours looks like mine, I can post them for you…

  • Gian

    Um, good day, I followed your instructions but still, it didn't work. can I know the reason what is wrong with the game? What version have these errors or bugs?

  • http://Odaecom.com Odaecom

    Hey Gian,
    So it didnt work for you?
    What was the original problem you were having?
    Could you try something for me? Rename or cut and paste the four .dbx files out of the BFBC2 input folder and then start game, when I did this I was able to play the game, which was not the case for me to start, I couldn't turn left or right. Let me know the results please.
    If that doesn't help go ahead and copy and paste each of your original .dbx files into a separate comment here, so I can look at and I will edit it for you.

  • kierbenz

    dude i dont have the bfbc folder in my documents. just for you to know, i actually installed the game in D:. yes there were files in there but none like those youve said :S

  • Brad

    Hey man, thanks for the solution. I'm in the process of trying it now but i'm just curious how do you tell which ones to delete? the “Joystick ones” They are all the same.

  • Brad

    nvm figured that out but are we supposed to delete the four unmodified files??

  • http://Odaecom.com Odaecom

    You can save the original files in the original folder, as long as they are renamed. If you have made the changes and everything works then there is no real reason to keep them.

  • http://www.tech-forums.net/pc/f15/bf-bc2-single-player-footage-226591/index12.html#post1787258 BF:BC2 single player footage – Page 12 – Computer Forums

    [...] want to play, but not with a kb+mouse, feel gimped and it annoys me. Basically followed this guide Unbind Controls in Battlefield: Bad Company 2 | The Cerebellum [...]

  • VINCENTRL

    WHERE DO I FIND HOW THE CONTROLS WORK? eXAMPLE, HOW DO i TELL PLAYER “gg” ETC. WHAT KEYBOARD STROKES WORK OR DO, AND OTHER GENERAL GAME INFORMATION!???? HELP!!!! THANK YOU!! LOVE THE GAME BUT WOULD ENJOY IT MORE IF I COULD FIGURE OUT THE CONTROLS!

  • arsalan

    Hi odeacom ! Emm, where there are three files we have to remove the last one yes. But when there are six lines which ones are to be removed ? Is it the 3rd and the 6th OR the 5th and 6th

  • http://Odaecom.com Odaecom

    It would be the ones that have numbers corresponding to the itemGUID numbers in the padinput lines. (With mine it was the sometime the third and fourth and others were the fifth and sixth.)

  • sneaky sneaky

    this is a very inaccurate description. defeats the purpose of trying to teach people when you rush through without detail like you already knew what to do!Get it? more detail dot expect everyone to know what your talking about.step by step my friend.Thats how you teach!

  • Ben

    You should post ur modified idx files so that users don't need to do this manually

  • Ben

    Also this didn't work for me, I removed all the pad bindings and it's still not working

  • admin

    I had tried that with my friend, and didnt work, as each install creates different guid key strings.

  • admin

    What was the problem you are having?
    If you post each file text as a comment I will edit and re-post.

  • http://forums.electronicarts.co.uk/battlefield-bad-company-2-pc/1110197-xbox-360-controller.html#post15086044 Xbox 360 controller – Electronic Arts UK Community

    [...] Company 2 – get your 360 controller config! – Overclockers UK Forums And unbinded using this guide Unbind Controls in Battlefield: Bad Company 2 | The Cerebellum and all WORKS perfectly, can even change sensitivity in xpadder, so stoked thanks for everones [...]

  • taxial

    This worked for me. Thank you. One thing that this doesn't fix is that the ESC key is mapped to the R Analog stick click. Any solution to cut that mapping out?

  • http://Odaecom.com Odaecom

    I'm not sure of the command you are trying to remove, you say its the ESC key, mapped to joystick. As I cant find an example of the ESC key being mapped, it could be like the ENTER key which cannot be unbound.
    You can try the simple solution from in game, bind it in-game to another key then bind that key back to something else.
    Example: Bind the E key to the one you want to get rid of, then go back and re-bind the E to its default action.
    If you cant fix it paste the contents of your input file here and I can take a peek at it.
    Good luck.

  • Paravrais

    When I did the fix now when I start the game it comes up with the wee menu I have to click 'play' on but then the game doesn't start afterwards, nothing happens at all. When I revert to the old files it loads fine. Whilst looking in my air.dbx I realised that I have the same numbers as you do, could you possibly post up your fixed files so I can try swapping them for mine and see if that works? I feel I probably made a mistake somewhere thats screwing things up but it will take forever to find that one mistake :s

  • http://Odaecom.com Odaecom

    Here you can try using my edited files, not sure it will work, let me know if it does for you.
    I do change my movement keys to edsf, instead of wsad, so you will have to rebind some keys in game.
    http://odaecom.com/Files/editeddbx.zip

  • admin

    Just doing this since I didnt reply to you in your thread and you were expecting a email…

  • Shoaibkhan_009

    thanks

  • Munkycheez

    Can i pay you to fix mine?nnnThese direction are not clear enough, and if there are others that need to be deleted?nWhat other reference to Pad?

  • http://Odaecom.com Odaecom

    You dont need to pay me, I can do the edit, just post each one in separate comments and I will post them back when Im done.

  • Deathinatesttube

    Hello, Today I purchased BFBC 2 and I am having the same problem with my keyboard and mouse. At 1st when it loads into single player i can move the mouse but it will only go to the right and up and the only button that works on the keyboard binding is crouch. I followed what you suggested and it is still the same no change at all, Is there any thing else that can be done or is there a patch to fix this problem now ?nnThanksn

  • http://Odaecom.com Odaecom

    Since they haven’t fixed it yet, I doubt they will…nIf you create new files and then post each one as separate comments I can to the clean-up and see if that works.nWith game not running delete the four files from your BFBC2 folder, then launch game and go into settings and change a key (which will create new files in the BFBC2 folder).

  • http://odaecom.com/2010/12/steam-electronic-arts-rant/ Steam, Electronic Arts Rant | The Cerebellum

    [...] After that aggravation, I then check key bindings and none of the settings I have for the main game show in the Vietnam mod… The only thing the same is that all the aircraft bindings are cleared from my workaround to fix the broken BFBC2 control settings. [...]

  • Metalkaos

    for those whose mouse only looks right there is a fix out there that is simple i found it on piratebay bfbc2 reloaded mouse fix i think it was has sum files pitoni and jabberwocky but it has sum.dll files: paul, rld but it fixes it just copy paste to main directory.n

  • Ftongl

    hi, i realize this was a year ago, but i’m having the same problem. right side joystick click brings up the menu. no matter what i map to crouch/xpadder, bad company 2 recognizes the joystick button as start, ala esc, and goes into menu. any ideas? n

  • Ftongl

    is there anyway to turn off the built in joystick controls completely?n

  • http://Odaecom.com Odaecom

    No way other than to remove the bindings. I recall people trying to remove the binding for the “enter” key, which is that what it sounds like its doing, but its not in the config file to remove as its hardcoded in the game.

  • http://www.mufaclan.com/tag/trkn mufaclan.com

    mufaclan.com…

    [...]Unbind Controls in Battlefield: Bad Company 2 | The Cerebellum[...]…

  • ichigo

    what u just said didnt work for me can u help me?