fqlx / XboxKeyboardMouse

Keyboard and mouse for Xbox One streaming on Windows
Apache License 2.0
317 stars 66 forks source link

Keyboarding binding for Left Trigger, RDR2. #141

Open coovargo opened 5 years ago

coovargo commented 5 years ago

Whenever I bind Left Trigger to say for example, Q, it rapidly switches on/off instead of just staying held down. Any idea on how I can fix this? You know, besides the obvious, using the mouse.

Kragrathea commented 5 years ago

I started having the same problem tonight. It seems to me it was working before. I think RDR2 may have been patched recently. I wonder if that has anything to do with it.

Kragrathea commented 5 years ago

I found the problem, at least in my fork of the code. There seems to be some kind of race condition between the mouse update and the keyboard update. There is a call in SetAxis() to SimGamePad.Instance.Update(); in addition to one in the main input update thread. I commented out the Update() in SetAxis and the shoulder buttons now work again. In theory that may effect the mouse update rate but the call in the main thread should happen very often anyway. And I can't see any difference after a brief play test.

DavidRieman commented 5 years ago

Hmm, I thought I fixed this too. Let me know if the latest auto-updated version (ClickOnce-v1.1.0.4) solves this for you.