Replies: 1 comment
-
Alright I found the cause - HidDeviceInputReceiver.ClearReceivedData does not get run in all conditions, which causes the buffer values to inflate over time. I fixed this by exposing ClearReceivedData as a public method then running it after each call to TryRead. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Came across an odd issue and could use some advice! So I've got the HIDSharp library up and running and reading data properly. However there is an input lag that slowly occurs over time, even when not pressing any input. So if I start my application, and press buttons, they immediately register. But if I let the controller sit for 20+ seconds, the time it takes a button to register starts to increase until it's many seconds between when I hit the button and when it registers. If I run the joystick tool in Windows however, I see there is no lag there, so it's something about HIDSharp or my implementation of it.
I've tried a number of things including flushing the stream after every input event received, but no luck. Has anyone encountered such an issue and found a resolution for it?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions