ihatecsv / ControlStadia

ControlStadia is a Chrome Extension which allows arbitrary mapping of input devices to a "standard" virtual input controller which works with Stadia!
GNU General Public License v3.0
29 stars 11 forks source link

Add deadzone to axis value change detection during control binding #16

Closed bszakaly closed 3 years ago

bszakaly commented 4 years ago

Fix control binding for controllers with an unfiltered axis position output value. Even if there's some change in the axis value during the binding of a control, ControlStadia won't assign that axis mistakenly to the control being changed, only when the value is larger than the deadzone of +-0.5.

Ps Thanks for the extension, this was the only way to make a cheap xbox-like controller work with Stadia on Ubuntu 20.04 and 20.10.

bszakaly commented 4 years ago

3

marcoscale98 commented 3 years ago

Yeah good job!

ihatecsv commented 3 years ago

Looks great, thanks!