Jays2Kings / DS4Windows

Like those other ds4tools, but sexier
3k stars 1.45k forks source link

Gyro Mouse looses data when making subtle adjustments. remainder storage broken? #108

Open Bluebie opened 8 years ago

Bluebie commented 8 years ago

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.

Steam Controller FPS Gyro Mouse Control Scheme

Bounty

rafasc commented 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.