Resident Evil 4 (2005)

Resident Evil 4 (2005)

View Stats:
Pandemic_91 Feb 27, 2014 @ 9:42pm
360 controller config
Is there a way to edit the 360 controls? Cause I'm used to pressing Y for inventory (instead of map), and A to shoot (instead of X).


EDIT:

Method 1:

Originally posted by darksamus:
I have the perfect solution for everyone.
My Xbox360 button mod (GCN Layout)
http://steamcommunity.com/app/254700/discussions/0/558750985845900971/

This not only gives you the exact same button layout as NGC, but also mods the buttons so they appear correctly.

In the next day or so I will upgrade this to support all languages and do a 2nd version that shows PS buttons instead. (for the Playstation controller fans)

Really hope you all enjoy this mod.

Thanks for darksamus for this!

Method 2:

Go to the input.ini located in your Steamapps->common->Resident Evil 4->BIO4 folder and look for a file named input.ini. Open the input.ini file and then Locate the ###XINPUT_CONTROLLER_A section.

Originally posted by BabaBlackSheep:
Okay, I think this fixes all problems. Everything except for the map is similar to the GC version. This isn't just meant for those of us who have those button inputs muscle memorized, but also if you think the default inputs are wonky. Because they are indeed wonky. 




I tested it, but who knows if there are secret problems hiding. Aside from the nuances listed below, everything should have that Gamecube controller feel.




-Button prompts for X and A on the screen are SWAPPED. If it tells you to mash "X" you need to hammer down the "A" button.
-Map is on select, not the Right shoulder button (which would be the "Z" button on GC).
-Shoulder triggers to control Leon in world (knife/aim).
-Shoulder buttons in inventory to switch between screens (key items/inventory/files). This is not a feature from the GC version. Shoulder buttons to also rotate items and control Ashley.
-Map is on the select button. Main menu is on start.








If you want to back out of a menu, you push "X" on the Xbox controller. You push "A" to advance on a menu. Again, this corresponds with the positions from the original GC controller for the same inputs.




Let's call this the v1.00 release of this part of the input functions.




###XINPUT_CONTROLLER_A




KEY_FORWARD = QKEY_GC_B4
KEY_FORWARD = QKEY_GC_B20
KEY_BACK = QKEY_GC_B3
KEY_BACK = QKEY_GC_B19
KEY_RIGHT = QKEY_GC_B2
KEY_RIGHT = QKEY_GC_B18
KEY_LEFT = QKEY_GC_B1
KEY_LEFT = QKEY_GC_B17
KEY_KAMAE = QKEY_GC_B5
KEY_RELOCKON = QKEY_GC_B7
KEY_RUN = QKEY_GC_B11
KEY_FIRE = QKEY_GC_B9
KEY_ASHLEY = QKEY_GC_B6
KEY_CK = QKEY_GC_B9
KEY_KAMAE_KNIFE = QKEY_GC_B8
KEY_ST = QKEY_GC_B13
KEY_OPTION = QKEY_GC_B13
KEY_C_U = QKEY_GC_B24
KEY_C_D = QKEY_GC_B23
KEY_Y = QKEY_GC_B12
KEY_X = QKEY_GC_B10
KEY_B = QKEY_GC_B11
KEY_A = QKEY_GC_B9
KEY_SSCRN = QKEY_GC_B12
KEY_MAP = QKEY_GC_B14
KEY_LB = QKEY_GC_B7
KEY_RB = QKEY_GC_B6
KEY_U = QKEY_GC_B4
KEY_U = QKEY_GC_B20
KEY_D = QKEY_GC_B3
KEY_D = QKEY_GC_B19
KEY_R = QKEY_GC_B2
KEY_R = QKEY_GC_B18
KEY_L = QKEY_GC_B1
KEY_L = QKEY_GC_B17
KEY_Z = QKEY_GC_B5
KEY_Z = QKEY_GC_B8
KEY_EV_CANCEL = QKEY_GC_B14
KEY_CANCEL = QKEY_GC_B11
KEY_OK = QKEY_GC_B9
KEY_OK = QKEY_GC_B9
KEY_LL = QKEY_GC_B1
KEY_LR = QKEY_GC_B2
KEY_LD = QKEY_GC_B3
KEY_LU = QKEY_GC_B4
KEY_C_R = QKEY_GC_B22
KEY_C_L = QKEY_GC_B21



Thanks to BabaBlackSheep for the help.
Last edited by Pandemic_91; Mar 19, 2014 @ 9:44am
< >
Showing 76-90 of 143 comments
Philhalo66 Feb 28, 2014 @ 2:12pm 
Man i wish they would have added in a controle scheme identical to the PS2 version.
BabaBlackSheep Feb 28, 2014 @ 2:34pm 
Editing input.ini. The guide.
Okay, here's my rough guide to button configuration. This is only for the Xbox 360 controller inputs, because that's all I have access to.

Please note, this may not be a 100% accurate guide. I hope it helps others out until a real button edit configuration tool becomes available.

First let me cover the inputs on the controller and the buttons the input.ini thinks those match up to. It doesn't follow the DirectInput HID mapping, in case you are wondering.

Button mappings in input.ini
XBOX | RE4 START B13 BACK B14 X B11 A B9 B B11 Y B12 LB B6 RB B7 LT B8 RT B5

B1 - B4 are mapped to direction inputs on the D-PAD, I think. B17-B20 are the left analog stick. This is me guessing based on the input.ini file, I never messed with these. There are some other B2# values that correspond with the right analog stick. If you want to mess with those you're on your own.

Example:
So say you want to make your Run button RT.
KEY_RUN = QKEY_GC_B5 would set that option for you.

With the above in mind, that's really all you need to get going, but there are some things to keep in mind about the input.ini file.

Weird stuff to keep in mind about editing input.ini
You will see KEY_Y KEY_X KEY_B and KEY_A. Changing these buttons will not make an effect in game WHILE CONTROLLING LEON. They will make an effect on the inventory menu and the QTEs.

But there are more buttons that will affect the menus.

KEY_EV_CANCEL = QKEY_GC_B14
KEY_CANCEL = QKEY_GC_B11
KEY_OK = QKEY_GC_B9
KEY_OK = QKEY_GC_B9

The duplicate entries for KEY_OK are from the original input.ini file, where the "X" and the "A" buttons were both for some reason OK. In the above example, "A" is now OK, and "X" is CANCEL.

Okay, now that that's out of the way let's break down what each input seemingly is. This is NOT the default button inputs, this is a list of the inputs that mirror gamecube controller inputs.

NOTE: If you change a button input, like B9 to B11, change EVERY other B9 you see to B11, unless you have a specific reason not to. Keeping the buttons consistent is important.

What the input options mean
###XINPUT_CONTROLLER_A

KEY_FORWARD = QKEY_GC_B4
KEY_FORWARD = QKEY_GC_B20
#forward dpad/left analog stick

KEY_BACK = QKEY_GC_B3
KEY_BACK = QKEY_GC_B19
#back dpad/analog stick. You get the idea.

KEY_RIGHT = QKEY_GC_B2
KEY_RIGHT = QKEY_GC_B18
KEY_LEFT = QKEY_GC_B1
KEY_LEFT = QKEY_GC_B17
KEY_KAMAE = QKEY_GC_B5
#aim gun button

KEY_RELOCKON = QKEY_GC_B7
#I'm not sure, but this is mapped to LB

KEY_RUN = QKEY_GC_B11
KEY_FIRE = QKEY_GC_B9
KEY_ASHLEY = QKEY_GC_B6
#tell Ashley to halt/follow

KEY_CK = QKEY_GC_B9
#Check button (action)

KEY_KAMAE_KNIFE = QKEY_GC_B8
#draw knife

KEY_ST = QKEY_GC_B13
KEY_OPTION = QKEY_GC_B13
#main menu button. I'm not sure why the above 2 are the same
#but it's okay, it seems to work fine


KEY_C_U = QKEY_GC_B24
KEY_C_D = QKEY_GC_B23
# C stick up/down. Right analog stick.

KEY_Y = QKEY_GC_B12
KEY_X = QKEY_GC_B10
KEY_B = QKEY_GC_B11
KEY_A = QKEY_GC_B9

KEY_SSCRN = QKEY_GC_B12
#Status screen

KEY_MAP = QKEY_GC_B14
#Map

KEY_LB = QKEY_GC_B7
KEY_RB = QKEY_GC_B6
#Shoulder buttons. I'm not sure what changing these does

KEY_U = QKEY_GC_B4
KEY_U = QKEY_GC_B20
KEY_D = QKEY_GC_B3
KEY_D = QKEY_GC_B19
KEY_R = QKEY_GC_B2
KEY_R = QKEY_GC_B18
KEY_L = QKEY_GC_B1
KEY_L = QKEY_GC_B17
#up/down/left/right while on status screen

KEY_Z = QKEY_GC_B5
KEY_Z = QKEY_GC_B8
# z button from gamecube. Picks up item in inventory to rearrange

KEY_EV_CANCEL = QKEY_GC_B14
#exit status screen

KEY_CANCEL = QKEY_GC_B11
#back out of menu

KEY_OK = QKEY_GC_B9
KEY_OK = QKEY_GC_B9
#advance forward in menu

KEY_LL = QKEY_GC_B1
KEY_LR = QKEY_GC_B2
KEY_LD = QKEY_GC_B3
KEY_LU = QKEY_GC_B4
#no idea. Might be main menu related.

KEY_C_R = QKEY_GC_B22
KEY_C_L = QKEY_GC_B21
#more right analog stick


Happy button configuring, y'all! Best of luck. This is basically everything I understand about input.ini right now.
Last edited by BabaBlackSheep; Feb 28, 2014 @ 2:47pm
Metal Feb 28, 2014 @ 2:47pm 
Originally posted by BabaBlackSheep:
Okay, here's my rough guide to button configuration. This is only for the Xbox 360 controller inputs, because that's all I have access to.

Please note, this may not be a 100% accurate guide. I hope it helps others out until a real button edit configuration tool becomes available.

First let me cover the inputs on the controller and the buttons the input.ini thinks those match up to. It doesn't follow the DirectInput HID mapping, in case you are wondering.

Button mappings in in
...

ohhhhhh, Very, Very thankssss..

Here layout PS2 :D

###XINPUT_CONTROLLER_A

KEY_FORWARD = QKEY_GC_B4
KEY_FORWARD = QKEY_GC_B20
KEY_BACK = QKEY_GC_B3
KEY_BACK = QKEY_GC_B19
KEY_RIGHT = QKEY_GC_B2
KEY_RIGHT = QKEY_GC_B18
KEY_LEFT = QKEY_GC_B1
KEY_LEFT = QKEY_GC_B17
KEY_KAMAE = QKEY_GC_B8
KEY_RELOCKON = QKEY_GC_B5
KEY_RUN = QKEY_GC_B11
KEY_FIRE = QKEY_GC_B9
KEY_ASHLEY = QKEY_GC_B6
KEY_CK = QKEY_GC_B9
KEY_KAMAE_KNIFE = QKEY_GC_B7
KEY_ST = QKEY_GC_B13
KEY_OPTION = QKEY_GC_B13
KEY_C_U = QKEY_GC_B24
KEY_C_D = QKEY_GC_B23
KEY_Y = QKEY_GC_B12
KEY_X = QKEY_GC_B12
KEY_B = QKEY_GC_B11
KEY_A = QKEY_GC_B9
KEY_SSCRN = QKEY_GC_B10
KEY_MAP = QKEY_GC_B14
KEY_LB = QKEY_GC_B7
KEY_RB = QKEY_GC_B6
KEY_U = QKEY_GC_B4
KEY_U = QKEY_GC_B20
KEY_D = QKEY_GC_B3
KEY_D = QKEY_GC_B19
KEY_R = QKEY_GC_B2
KEY_R = QKEY_GC_B18
KEY_L = QKEY_GC_B1
KEY_L = QKEY_GC_B17
KEY_Z = QKEY_GC_B5
KEY_Z = QKEY_GC_B8
KEY_EV_CANCEL = QKEY_GC_B14
KEY_CANCEL = QKEY_GC_B11
KEY_OK = QKEY_GC_B9
KEY_OK = QKEY_GC_B9
KEY_LL = QKEY_GC_B1
KEY_LR = QKEY_GC_B2
KEY_LD = QKEY_GC_B3
KEY_LU = QKEY_GC_B4
KEY_C_R = QKEY_GC_B22
KEY_C_L = QKEY_GC_B21
Last edited by Metal; Feb 28, 2014 @ 3:19pm
Pandemic_91 Feb 28, 2014 @ 2:53pm 
Originally posted by BabaBlackSheep:
Editing input.ini. The guide.
Okay, here's my rough guide to button configuration. This is only for the Xbox 360 controller inputs, because that's all I have access to.

Please note, this may not be a 100% accurate guide. I hope it helps others out until a real button edit configuration tool becomes available.

First let me cover the inputs on the controller and the buttons the input.ini thinks those match up to. It doesn't follow the DirectInput HID mapping, in case you are wondering.

Button mappings in input.ini
XBOX | RE4 START B13 BACK B14 X B11 A B9 B B11 Y B12 LB B6 RB B7 LT B8 RT B5

B1 - B4 are mapped to direction inputs on the D-PAD, I think. B17-B20 are the left analog stick. This is me guessing based on the input.ini file, I never messed with these. There are some other B2# values that correspond with the right analog stick. If you want to mess with those you're on your own.

Example:
So say you want to make your Run button RT.
KEY_RUN = QKEY_GC_B5 would set that option for you.

With the above in mind, that's really all you need to get going, but there are some things to keep in mind about the input.ini file.

Weird stuff to keep in mind about editing input.ini
You will see KEY_Y KEY_X KEY_B and KEY_A. Changing these buttons will not make an effect in game WHILE CONTROLLING LEON. They will make an effect on the inventory menu and the QTEs.

But there are more buttons that will affect the menus.

KEY_EV_CANCEL = QKEY_GC_B14
KEY_CANCEL = QKEY_GC_B11
KEY_OK = QKEY_GC_B9
KEY_OK = QKEY_GC_B9

The duplicate entries for KEY_OK are from the original input.ini file, where the "X" and the "A" buttons were both for some reason OK. In the above example, "A" is now OK, and "X" is CANCEL.

Okay, now that that's out of the way let's break down what each input seemingly is. This is NOT the default button inputs, this is a list of the inputs that mirror gamecube controller inputs.

NOTE: If you change a button input, like B9 to B11, change EVERY other B9 you see to B11, unless you have a specific reason not to. Keeping the buttons consistent is important.

What the input options mean
###XINPUT_CONTROLLER_A

KEY_FORWARD = QKEY_GC_B4
KEY_FORWARD = QKEY_GC_B20
#forward dpad/left analog stick

KEY_BACK = QKEY_GC_B3
KEY_BACK = QKEY_GC_B19
#back dpad/analog stick. You get the idea.

KEY_RIGHT = QKEY_GC_B2
KEY_RIGHT = QKEY_GC_B18
KEY_LEFT = QKEY_GC_B1
KEY_LEFT = QKEY_GC_B17
KEY_KAMAE = QKEY_GC_B5
#aim gun button

KEY_RELOCKON = QKEY_GC_B7
#I'm not sure, but this is mapped to LB

KEY_RUN = QKEY_GC_B11
KEY_FIRE = QKEY_GC_B9
KEY_ASHLEY = QKEY_GC_B6
#tell Ashley to halt/follow

KEY_CK = QKEY_GC_B9
#Check button (action)

KEY_KAMAE_KNIFE = QKEY_GC_B8
#draw knife

KEY_ST = QKEY_GC_B13
KEY_OPTION = QKEY_GC_B13
#main menu button. I'm not sure why the above 2 are the same
#but it's okay, it seems to work fine


KEY_C_U = QKEY_GC_B24
KEY_C_D = QKEY_GC_B23
# C stick up/down. Right analog stick.

KEY_Y = QKEY_GC_B12
KEY_X = QKEY_GC_B10
KEY_B = QKEY_GC_B11
KEY_A = QKEY_GC_B9

KEY_SSCRN = QKEY_GC_B12
#Status screen

KEY_MAP = QKEY_GC_B14
#Map

KEY_LB = QKEY_GC_B7
KEY_RB = QKEY_GC_B6
#Shoulder buttons. I'm not sure what changing these does

KEY_U = QKEY_GC_B4
KEY_U = QKEY_GC_B20
KEY_D = QKEY_GC_B3
KEY_D = QKEY_GC_B19
KEY_R = QKEY_GC_B2
KEY_R = QKEY_GC_B18
KEY_L = QKEY_GC_B1
KEY_L = QKEY_GC_B17
#up/down/left/right while on status screen

KEY_Z = QKEY_GC_B5
KEY_Z = QKEY_GC_B8
# z button from gamecube. Picks up item in inventory to rearrange

KEY_EV_CANCEL = QKEY_GC_B14
#exit status screen

KEY_CANCEL = QKEY_GC_B11
#back out of menu

KEY_OK = QKEY_GC_B9
KEY_OK = QKEY_GC_B9
#advance forward in menu

KEY_LL = QKEY_GC_B1
KEY_LR = QKEY_GC_B2
KEY_LD = QKEY_GC_B3
KEY_LU = QKEY_GC_B4
#no idea. Might be main menu related.

KEY_C_R = QKEY_GC_B22
KEY_C_L = QKEY_GC_B21
#more right analog stick


Happy button configuring, y'all! Best of luck. This is basically everything I understand about input.ini right now.

I hope you posted this in the guide section...it's very helpful :D
ReFracture Feb 28, 2014 @ 2:54pm 
Awesome guys. I'm so used to using the run/reload/quickturn button for cancel in menus. Why they changed this just blows my mind in ways I cannot comprehend and always drove me insane when playing this or the PS3 version. Now I can happily play a version of this game that isn't PS2 or GCN.
BabaBlackSheep Feb 28, 2014 @ 3:04pm 
Originally posted by Friedchickendude:
I hope you posted this in the guide section...it's very helpful :D

Thanks for the suggestion. I just did so on account of it! It's rough at the moment, but I'll go back and clean it up when I have time.
zodiac Feb 28, 2014 @ 3:08pm 
Originally posted by BabaBlackSheep:
Originally posted by zodiac:
do we know which command is tied to triggers and which is to bumpers? along with the config in the op, id like to switch LT/LB and RT/RB and then itd basically be perfect. thanks


I'm not 100% sure, but

These two are LT
KEY_KAMAE_KNIFE = QKEY_GC_B8
KEY_Z = QKEY_GC_B8

These two are RT
KEY_KAMAE = QKEY_GC_B5
KEY_Z = QKEY_GC_B5

These two are LB
KEY_RELOCKON = QKEY_GC_B7
KEY_LB = QKEY_GC_B7

These two are RB
KEY_ASHLEY = QKEY_GC_B6
KEY_RB = QKEY_GC_B6

You are gonna notice KEY_Z is mapped to LT and RT right next to each other in the input file. That's pretty mysterious to me. Try switching the values around and see if you get the results you want.

thanks, going to try this out now

the key_z parts are probably because the triggers on the 360 controllers arent defined as buttons, but rather two things that share an axis. a lot of older games have problems with LT/RT being used at the same time because of this
zodiac Feb 28, 2014 @ 3:24pm 
awesome, swapped them round without touching the KEY_Z commands and everything is perfect. youve made this game playable for me, thanks a lot man
BabaBlackSheep Feb 28, 2014 @ 5:27pm 
Glad to have been of service! :D
DarkShinobu Feb 28, 2014 @ 6:20pm 
Originally posted by BabaBlackSheep:
Glad to have been of service! :D

Can you help me a bit, i tried lots of things, but i havent had luck with the left stick aiming, it should be possible, same as how the 360 one was, is only the aiming thing with the left-right stick, the other things can be sorted out easily:

###GAME_CONTROLLER
###C216046D-0000-0000-0000-504944564944

KEY_FORWARD = QKEY_GC_YN
KEY_BACK = QKEY_GC_YP
KEY_RIGHT = QKEY_GC_XP
KEY_LEFT = QKEY_GC_XN
KEY_KAMAE = QKEY_GC_B6
KEY_RUN = QKEY_GC_B2
KEY_FIRE = QKEY_GC_B1
KEY_ASHLEY = QKEY_GC_B3
KEY_CK = QKEY_GC_B1
KEY_KAMAE_KNIFE = QKEY_GC_B5
KEY_ST = QKEY_GC_B10
KEY_OPTION = QKEY_GC_B9
KEY_C_U = QKEY_GC_RZN
KEY_C_D = QKEY_GC_RZP
KEY_X = QKEY_GC_B3
KEY_B = QKEY_GC_B2
KEY_A = QKEY_GC_B1
KEY_SSCRN = QKEY_GC_B4
KEY_MAP = QKEY_GC_B8
KEY_U = QKEY_GC_YN
KEY_D = QKEY_GC_YP
KEY_R = QKEY_GC_XP
KEY_L = QKEY_GC_XN
KEY_EV_CANCEL = QKEY_GC_B9
KEY_CANCEL = QKEY_GC_B2
KEY_OK = QKEY_GC_B2
KEY_OK = QKEY_GC_B3
KEY_LL = QKEY_GC_POVL
KEY_LR = QKEY_GC_POVR
KEY_LD = QKEY_GC_POVD
KEY_LU = QKEY_GC_POVU
KEY_C_R = QKEY_GC_ZP
KEY_C_L = QKEY_GC_ZN


YN, YP and X are related to the left stick, while RZ and ZN are the ones for the right stick or the C-Stick on the GC pad, swapping didnt work and, idk, i just want to play it like how it was on the GC, left stick to move and aim, and right stick or cstick to camera,
Last edited by DarkShinobu; Feb 28, 2014 @ 6:22pm
BabaBlackSheep Feb 28, 2014 @ 6:28pm 
Originally posted by DarkShinobu:
Can you help me a bit, i tried lots of things, but i havent had luck with the left stick aiming, it should be possible, same as how the 360 one was, is only the aiming thing with the left-right stick, the other things can be sorted out easily:
Just to make sure I'm on board with you, right now you can move Leon normally, you can swing the camera around normally, but once you start aiming you have to move the right analog stick to aim the gun. Is that correct?
DarkShinobu Feb 28, 2014 @ 6:30pm 
Originally posted by BabaBlackSheep:
Originally posted by DarkShinobu:
Can you help me a bit, i tried lots of things, but i havent had luck with the left stick aiming, it should be possible, same as how the 360 one was, is only the aiming thing with the left-right stick, the other things can be sorted out easily:
Just to make sure I'm on board with you, right now you can move Leon normally, you can swing the camera around normally, but once you start aiming you have to move the right analog stick to aim the gun. Is that correct?

Thank you for the response, i move leon normally with the left stick, yep, i can swing the camera with the right stick yeah, but when i aim, i only can move the gun with the right stick, exactly....
BabaBlackSheep Feb 28, 2014 @ 7:01pm 
Originally posted by DarkShinobu:
Originally posted by BabaBlackSheep:
Just to make sure I'm on board with you, right now you can move Leon normally, you can swing the camera around normally, but once you start aiming you have to move the right analog stick to aim the gun. Is that correct?

Thank you for the response, i move leon normally with the left stick, yep, i can swing the camera with the right stick yeah, but when i aim, i only can move the gun with the right stick, exactly....
I'm sorry, bro. I gave it my best effort, but I can't figure it out, myself. The aim input seems to be different from the other regular direction inputs, and I can't find out where that option is set.
BONKERS Feb 28, 2014 @ 7:14pm 
Not including an option to aim with the left stick is disastorous. Who in their right mind thought this was a GOOD idea?
BabaBlackSheep Feb 28, 2014 @ 7:16pm 
It's the default with the xbox360 controller, but it seems like it might not be with some other controller brands. I can't even get the inputs changed for the xbox360 controller, though, much less for controllers I don't own and can't test. If an idea strikes me I'll try it, but right now I'm coming up empty.
< >
Showing 76-90 of 143 comments
Per page: 1530 50