fgsfdsfgs / perfect_dark

work in progress port of n64decomp/perfect_dark to modern platforms
MIT License
1.24k stars 75 forks source link

Nintendo 64 controller (Switch) key bindings #519

Open Donny316 opened 1 month ago

Donny316 commented 1 month ago

Is anyone else playing with a Switch N64 controller? I found it hard to get the key bindings right, but more or less have now done so. The only problem is that the Z-trigger and C-Down seem to both map to fire. Here are my key bindings. Does anyone have any advice? I prefer playing with the N64 controller, as strange as that may seem, purely because the controls are burned into my muscle memory.

Screenshot 2024-10-07 234250

LonelySpaceDetective commented 1 month ago

What happens exactly when you press Z or C-Down? Do you just fire and do nothing else, or fire and aim down/move backwards (depending on the selected in-game control scheme) at the same time? Does it change depending on which of the two you press?

FrostKnight commented 1 month ago

What kind of controller adapter are you using? Curious, because raphnet 3.6 also doesn't work right. Only V2 config and older exist in this i think.

LonelySpaceDetective commented 1 month ago

What kind of controller adapter are you using? Curious, because raphnet 3.6 also doesn't work right. Only V2 config and older exist in this i think.

The Switch N64 repro I think is just a standard wireless controller in the same style as the Pro controller. Never had one so I'm not 100%, but it certainly isn't something you'd need to get a Raphnet adapter for.

Donny316 commented 1 month ago

What happens exactly when you press Z or C-Down? Do you just fire and do nothing else, or fire and aim down/move backwards (depending on the selected in-game control scheme) at the same time? Does it change depending on which of the two you press?

It fires and aims up simultaneously. So basically it performs the correct function, but also shoots the weapon.

LonelySpaceDetective commented 1 month ago

It fires and aims up simultaneously. So basically it performs the correct function, but also shoots the weapon.

I see. Are the buttons merged in any other games or applications (in particular, ones that use SDL for controller input), or is it just this PC port that gives you this issue? If the latter, I'd check pd.ini to see if two controller buttons are assigned to the same function.

fgsfdsfgs commented 1 month ago

You probably need to unbind some buttons. There are multiple bindings for each action by default. You can try Reset to N64 defaults. If you still can't get something to work, try downloading this file and putting it in the save folder.