Skip to content

Commit

Permalink
fix(Default Profile): Adjust default profile.
Browse files Browse the repository at this point in the history
- While at it, map Mute/Screenshot in DS5 target.
  • Loading branch information
pastaq authored and ShadowApex committed Aug 19, 2024
1 parent 4ac1ad6 commit 75f312a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
12 changes: 3 additions & 9 deletions rootfs/usr/share/inputplumber/profiles/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,14 @@ mapping:
button: LeftTop
target_events:
- gamepad:
button: Guide
- gamepad:
button: North
button: LeftPaddle1
- name: RightTop
source_event:
gamepad:
button: RightTop
target_events:
- gamepad:
button: Guide
- gamepad:
button: East
button: RightPaddle1
- name: Keyboard
source_event:
gamepad:
Expand All @@ -49,6 +45,4 @@ mapping:
button: QuickAccess2
target_events:
- gamepad:
button: Guide
- gamepad:
button: East
button: Screenshot
3 changes: 3 additions & 0 deletions src/input/target/dualsense.rs
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,8 @@ impl DualSenseDevice {
GamepadButton::RightStickTouch => (),
GamepadButton::LeftPaddle3 => (),
GamepadButton::RightPaddle3 => (),
GamepadButton::Mute => state.mute = event.pressed(),
GamepadButton::Screenshot => state.mute = event.pressed(),
_ => (),
},
Gamepad::Axis(axis) => match axis {
Expand Down Expand Up @@ -951,6 +953,7 @@ impl TargetInputDevice for DualSenseDevice {
Capability::Gamepad(Gamepad::Button(GamepadButton::RightPaddle2)),
Capability::Gamepad(Gamepad::Button(GamepadButton::RightStick)),
Capability::Gamepad(Gamepad::Button(GamepadButton::RightTrigger)),
Capability::Gamepad(Gamepad::Button(GamepadButton::Screenshot)),
Capability::Gamepad(Gamepad::Button(GamepadButton::Select)),
Capability::Gamepad(Gamepad::Button(GamepadButton::South)),
Capability::Gamepad(Gamepad::Button(GamepadButton::Start)),
Expand Down

0 comments on commit 75f312a

Please sign in to comment.