Snoothy / UCR

Universal Control Remapper [Alpha]
MIT License
906 stars 91 forks source link

Axis Inputs randomly getting stuck #173

Open onaho opened 4 years ago

onaho commented 4 years ago

I'm using interception to emulate an xbox controller with my keyboard. However, while it works perfectly 99% of the time, there's random occurrences where one of the axis inputs gets stuck and will stay stuck indefinitely until another, or several, input(s) is/are pressed. Sometimes just one input can get the input unstuck, but sometimes it's stubborn and requires more than 5 or so key presses to get unstuck. This seems to happen about once every 10 minutes or so. I've confirmed that the problem was not the game as I quit the game when this problem occurred and when right-clicking the ucr icon in the taskbar, the options were being highlighted in a downward fashion (like if you held the down arrow key) without having any keys pressed. It could be a problem with inception or vigem, but I have no idea. image

I checked the logs but found no errors.

EkajArmstro commented 4 years ago

Possibly related to https://github.com/Snoothy/UCR/issues/148

Snoothy commented 4 years ago

Which devices are you using and how are you mapping the axis?

onaho commented 4 years ago

image

Here's my context.xml (changed to txt so I could upload to github). context.txt

Also, I noticed that this is happening much more frequently than every 10 minutes. It seems to happen most often when you hold a button down or rapidly press it. Also, I think I noticed it once with a button instead of an axis (because I have to hold down the numpad + button in the game). So it seems to be an issue that can happen to any button that is pressed rapidly or being held down.

Stopfield commented 4 years ago

I also have this problem. I have a directinput controller (a generic), and I need to emulate another one with XInput. The Axis are stuck or become stuck, I really can't say.

onaho commented 4 years ago

image Yeah this is definitely not just the game. The picture above shows the left stick being held down to the right, but I'm not even pressing any keys. UCR keeps getting inputs stuck that have been held down or rapidly pressed. Sometimes I feel like inputs are getting stuck that I haven't even pressed (still not sure about this). I really hope this can get fixed because there is no better alternative than UCR.

MichaelSasser commented 3 years ago

I have the same problem with a ps4 controller but it only works 20% of the time. I merged L2 and R2 into one axis with UCR 0.9-alpha. UCR Screenshot

phasermaniac83 commented 3 years ago

Same problem here using ps2 dualshocks. If I remap to xbox pads I get this issue. Mainly I notice with directions, but happens with buttons too. It doesn't happen if I remap to keyboard keys. Any new about this?

wamphlett commented 1 year ago

I also have this issue. I am mapping a Ultimarc IPAC (essentially a keyboard) to an Xbox controller. Both player 1 and 2 dpad inputs get stuck quite frequently, usually following fast inputs and the only way to release it is to push the same direction button again i.e. if "up" is stuck, only pushing "up" again will unstick the input.

I have tested on multiple games and multiple controller testers, all behave in the same way. Sounds like its the same bug as #240 and #148

@Snoothy do you have any thoughts on this or any tips on how to debug it further, Id be happy to dive in and look.