Skip to content

Commit

Permalink
fix(target): Adjust QAM chord timing
Browse files Browse the repository at this point in the history
  • Loading branch information
uejji authored and ShadowApex committed Oct 17, 2024
1 parent 6d2c65f commit 7990337
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions src/input/target/dualsense.rs
Original file line number Diff line number Diff line change
Expand Up @@ -907,11 +907,11 @@ impl TargetInputDevice for DualSenseDevice {

let (guide, south) = if pressed {
let guide = ScheduledNativeEvent::new(guide, Duration::from_millis(0));
let south = ScheduledNativeEvent::new(south, Duration::from_millis(80));
let south = ScheduledNativeEvent::new(south, Duration::from_millis(160));
(guide, south)
} else {
let guide = ScheduledNativeEvent::new(guide, Duration::from_millis(160));
let south = ScheduledNativeEvent::new(south, Duration::from_millis(80));
let guide = ScheduledNativeEvent::new(guide, Duration::from_millis(240));
let south = ScheduledNativeEvent::new(south, Duration::from_millis(160));
(guide, south)
};

Expand Down
6 changes: 3 additions & 3 deletions src/input/target/xb360.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,11 @@ impl TargetInputDevice for XBox360Controller {

let (guide, south) = if pressed {
let guide = ScheduledNativeEvent::new(guide, Duration::from_millis(0));
let south = ScheduledNativeEvent::new(south, Duration::from_millis(80));
let south = ScheduledNativeEvent::new(south, Duration::from_millis(160));
(guide, south)
} else {
let guide = ScheduledNativeEvent::new(guide, Duration::from_millis(160));
let south = ScheduledNativeEvent::new(south, Duration::from_millis(80));
let guide = ScheduledNativeEvent::new(guide, Duration::from_millis(240));
let south = ScheduledNativeEvent::new(south, Duration::from_millis(160));
(guide, south)
};

Expand Down
6 changes: 3 additions & 3 deletions src/input/target/xbox_elite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,11 @@ impl TargetInputDevice for XboxEliteController {

let (guide, south) = if pressed {
let guide = ScheduledNativeEvent::new(guide, Duration::from_millis(0));
let south = ScheduledNativeEvent::new(south, Duration::from_millis(80));
let south = ScheduledNativeEvent::new(south, Duration::from_millis(160));
(guide, south)
} else {
let guide = ScheduledNativeEvent::new(guide, Duration::from_millis(160));
let south = ScheduledNativeEvent::new(south, Duration::from_millis(80));
let guide = ScheduledNativeEvent::new(guide, Duration::from_millis(240));
let south = ScheduledNativeEvent::new(south, Duration::from_millis(160));
(guide, south)
};

Expand Down
6 changes: 3 additions & 3 deletions src/input/target/xbox_series.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,11 @@ impl TargetInputDevice for XboxSeriesController {

let (guide, south) = if pressed {
let guide = ScheduledNativeEvent::new(guide, Duration::from_millis(0));
let south = ScheduledNativeEvent::new(south, Duration::from_millis(80));
let south = ScheduledNativeEvent::new(south, Duration::from_millis(160));
(guide, south)
} else {
let guide = ScheduledNativeEvent::new(guide, Duration::from_millis(160));
let south = ScheduledNativeEvent::new(south, Duration::from_millis(80));
let guide = ScheduledNativeEvent::new(guide, Duration::from_millis(240));
let south = ScheduledNativeEvent::new(south, Duration::from_millis(160));
(guide, south)
};

Expand Down

0 comments on commit 7990337

Please sign in to comment.