Add org.sigxcup.org.Feedback.Haptic interface
Add new interface to submit patterns similar to https://www.w3.org/TR/vibration/
See individual commits for details.
Example:
busctl call --user org.sigxcpu.Feedback /org/sigxcpu/Feedback org.sigxcpu.Feedback.Haptic Vibrate 'sau' org.foo.app 7 123 1000 500 1000 750 1000 1000
Closes: #80 (closed)
Merge request reports
Activity
Filter activity
added feedback:vibra label
added 2 commits
v2:
- Use (magnitude,length) pairs rather than just play/pause
E.g.
busctl call --user org.sigxcpu.Feedback /org/sigxcpu/Feedback org.sigxcpu.Feedback.Haptic Vibrate 'sa(du)' org.foo.app 5 1.0 200 0.0 200 0.5 300 0.0 300 1.0 400
Setting to draft as I'll wiggle the commits around in case this turns out to be what we want.
added 16 commits
-
b17553e2...82f65f02 - 2 commits from branch
Librem5:main
- 82f65f02...cdf5fb2b - 4 earlier commits
- 5ed445a8 - feedback-manager: Don't trigger haptic feedbacks when vibra is busy
- 24736b94 - feedback-vibra: Use g_timeout_add_once
- 18f2c887 - feedback-vibra: Clear timer id
- 58221c74 - feedback-vibra: Allow derived classes to override duration
- 386c98c3 - dev-vibra: Allow to set magnitude
- 9cebb2c0 - feedback-vibra: Add support for patterns
- 93dc859f - data: Add vibration API
- 31c7bf7d - haptic-manager: New object to handle the Haptic DBus interface
- f639f7d1 - feedback-manager: Instantiate .Haptic DBus interface
- 7f2283e6 - README: Document new API
Toggle commit list-
b17553e2...82f65f02 - 2 commits from branch
mentioned in commit 2d21a4f2
Please register or sign in to reply