ayufan / steam-deck-tools

(Windows) Steam Deck Tools - Fan, Overlay, Power Control and Steam Controller for Windows
https://steam-deck-tools.ayufan.dev
Other
867 stars 63 forks source link

Changes around Dead Zone #145

Closed DavidRGriswold closed 11 months ago

DavidRGriswold commented 11 months ago

There are two commits in this pull request. The first commit just adds a circular deadzone detection for the left and right joysticks. It does this by creating a property called "PartnerAxis" for the SteamAxis class, and if that property is set it uses both values to decide whether to snap to 0. Alone, this guarantees no snap to cardinal directions.

The second commit creates a "JoystickDeadZone" setting in the settings menu that accepts any short. I set to 0, no dead zone. I had to add a property called "UseDeadzoneSetting" to make this work so that the triggers and pads don't use the same setting.

DavidRGriswold commented 11 months ago

closing this one and putting in a different one instead that moves the deadzone detection to the profiles instead of the device itself. I think that's a better choice.