r57zone / DualShock4-emulator

DualShock4 emulation for Xbox controllers or keyboard and mouse / Эмуляция DualShock4 для Xbox контроллеров или клавиатуры и мыши
https://youtu.be/17hY1zTqoYQ
The Unlicense
189 stars 30 forks source link

[Feature request] Deadzone option for sticks #24

Closed triatic closed 2 years ago

triatic commented 3 years ago

Firstly, thank you so much for the great software! I can play Until Dawn on my PC with an Xbox 360 controller!

The problem is that Until Dawn's story choices are selected with the analogue stick, and my controller selects options without me pressing anything due to the stick being slightly off-centre when not pressed (it is old).

Can you add a deadzone option so that, for instance, the stick only registers when at 25% of maximum?

r57zone commented 3 years ago

Hi, I will try to add in future versions, thanks for the suggestion.

triatic commented 3 years ago

Great, thanks once again. 👍

r57zone commented 3 years ago

Hi, I added support for dead zones. Connect the joystick, run the program, press ALT + F7 in it, write the drift value to the config file (Config.ini parameters DeadZoneLeftStickX, Y...) and restart the program. Please check if it works well for you.

I also please check the touchpad in the game, whether its operation has changed. I have slightly updated the code associated with it. Thanks.

DS4EmulatorWithDeadZones1.zip

If everything works well, then I will update the program for everyone

triatic commented 3 years ago

Thank you, but this version is not working properly. After the "Until Dawn" title screen, it says:

image

The previous version is still working ok.

r57zone commented 3 years ago

Try restarting the program and ps now

triatic commented 3 years ago

I restarted both, controller is not being detected.

r57zone commented 3 years ago

Still doesn't work after a reboot? If press Win + R and enter Joy.cpl, there will be no gamepads there? You are checking this in PS Now or PS Remote Play?

triatic commented 3 years ago

It still doesn't work in PS Now, joy.cpl has two entries, my wired Xbox 360 controller and "Wireless Controller" which seems to be added by the emulator.

r57zone commented 2 years ago

Added in the latest release