fte-team / fteqw

This is the official GitHub mirror for the FTEQW project.
https://www.fteqw.org/
159 stars 48 forks source link

Splitscreen controllers need to press a button twice if another is holding it #138

Open Xylemon opened 1 year ago

Xylemon commented 1 year ago

https://sourceforge.net/p/fteqw/tickets/102/

trov wrote on 2021-05-17:

Hello;

I'm reporting an issue with Splitscreen. it works almost flawlessly, except for one thing:

It seems that if one gamepad is holding down a button (such as right trigger to shoot, or A to jump) any other gamepads have to press that button twice to get their own button to register. After that first press, the other controllers can press the button and get it to register any time; but the first press of a button by any gamepad after one gamepads starts to hold it gets stuffed.

This is an issue, since it basically means all players will have trouble shooting while one player is currently shooting.

OS: Windows 10 Controllers: Tested with four Xbox One gamepads FTE ver 5808 (But I have seen this behavior years ago as well) Tested with just game id1

I understand splitscreen is a very niche feature, but since this is the only engine I'm aware of that offers it, I would be very thankful if this issue was solved!

Xylemon commented 1 year ago

trov wrote on 2021-05-17:

There's also other minor oddities like other splitscreen views not getting any view bobbing when moving, but those are minor since they dont affect gameplay like this issue

Xylemon commented 1 year ago

trov wrote on 2021-05-17:

A bit more info: the issue doesnt seem to happen between a gamepad player and a mouse player, so the issue is probably contained within joystick input handling code and nothing to do with client/server code for splitscreen players.

The issue happens regardless of in_xinput or in_rawinput settings.