How to Get Generalized Gamepad binding rather than DualShock4GamepadHID ?

Hi,

I’m implementing interactive binding for gamepad and keyboard/mouse.

I use localization package to map each binding to a localized entry. I expect all of the controller inputes like PS4, Xbox One and Steam to map to a general gamepad layout. however when I’m using PS4 controller for some of the inputs, I’m not getting general binding path, it gives me DualShock4GamepadHID.

To be specific, when I hit L2 on PS4 controller I expect to get:
/leftTrigger

However, I’m getting this now:
/leftTriggerButton

Does anyone now how can I stop getting specific gamepad type, or somehow generalize it so I can map it in localization table.

Hi,

<Gamepad>/leftTrigger should work PS4 controller.
The reason leftTriggerButton exist is because the gamepad reports both axis (0-255 value) and one bit (0-1) state for left/right triggers, so we currently mapped them separately.

Are you getting this problem during rebinding? Maybe trigger button can be filtered out then.

Please create a bug report, seems like instead of exposing leftTriggerButton I can instead just set axis to max value if it’s set

1 Like