Skip to content

Commit

Permalink
fix(SteamDeck): dampen force feedback values
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowApex committed May 28, 2024
1 parent e0923be commit ffa4863
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/input/source/hidraw/steam_deck.rs
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,8 @@ impl DeckOutput {
let intensity = 0;
let left_speed = strong_magnitude;
let right_speed = weak_magnitude;
let mut left_gain = 130;
let mut right_gain = 130;
let mut left_gain = 0; // Max 130
let mut right_gain = 0;
if left_speed == 0 {
left_gain = 0;
}
Expand Down Expand Up @@ -359,8 +359,8 @@ impl DeckOutput {
let intensity = 0;
let left_speed = report.rumble_emulation_left as u16 * 256;
let right_speed = report.rumble_emulation_right as u16 * 256;
let mut left_gain = 130;
let mut right_gain = 130;
let mut left_gain = 0; // Max 130
let mut right_gain = 0;
if left_speed == 0 {
left_gain = 0;
}
Expand Down

0 comments on commit ffa4863

Please sign in to comment.