FWGS / xash3d-fwgs

Xash3D FWGS engine
1.58k stars 241 forks source link

Gamepad buttons are always bound to multiple functions #1337

Open second2050 opened 1 year ago

second2050 commented 1 year ago

Issue

Gamepad buttons always execute to functions: one function I defined and one function that I haven't defined but that is always the same for a given button. This happens with both a DualShock 4 v2 and a Steam Controller (used via SC Controller, emulating an Xbox 360 Controller).

This does not happen if a button is unbound.

Example

Platform information

OS: Arch Linux (Kernel 6.3.0-x64v3-xanmod1-1) Xash3D version: Xash3D FWGS 49/0.20 (linux-i386 build 2947) compiled from master (48176233bdc264cd4e5bce1f8df83f2f4bc59f7c)

Logs and attachments

engine.log xgamepad.cfg.txt Gamepad Bindings

a1batross commented 1 year ago

Better set joystick 0 in this config.

It seems that joystick support in original client.dll is conflicting with our in-engine support. You have to disable one of them.

I will figure out how to support both later.

second2050 commented 1 year ago

According to the console joystick 0 is already set and executing joystick 0 doesn't seem to change anything. Setting joystick 1 makes the left stick also control the camera though.

CkauNui commented 1 year ago

[RU] Такая же проблема, всё ещё нет исправленного client.dll?

OlegAckbar commented 4 months ago

I can confirm this issue. For me, A and B buttons are also acting as primary and secondary attacks, even though I've not set them so.

xash3d_gamepad.webm

OlegAckbar commented 4 months ago

hlsdk-portable libraries are fixing the issue

a1batross commented 4 months ago

Yeah, hlsdk-portable client wouldn't have this issue because it's aware of our custom input interface.