Open Bluebie opened 8 years ago
my cursor drifts towards the bottom right corner. (place the controller on a flat surface and the cursor starts moving by itself)
Not sure if it is some bug in the code or natural gyro bias/drift...
Using Kalman Filter with the gyro and accelerometer data would probably fix it.
I was trying to setup my controller to activate a gyro mouse when I pull up my gun sights in Borderlands using the left trigger L2. Gyro mouse is basically unusable currently. It works fine for large mouse movements but when you slow down and try to make some small adjustments the mouse stops moving. It seems like either there's a deadzone on the gyro input (but I haven't found any code implementing that yet while exploring the repo), or more likely, the "remainder" system in DS4Control/MouseCursor.cs is loosing data somehow and not working.
Avoiding use of the touchpad doesn't affect this issue, so I don't think the remainder is being interfered with by touch events.
Inspired by Steam Controller schemes in FPS games, which look like they would work really well to get some fine adjustments that the deadzone on the right analog right stick typically makes way too annoying. Use of a gyro mouse for aiming also helps with game immersion.