From 93dc859f7d6dc6c905337b102c030cc399b47b90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Wed, 11 Dec 2024 12:46:51 +0100 Subject: [PATCH] data: Add vibration API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The API is meant to trigger the given vibration pattern on the haptic device. The pattern is sequence of relative amplitude and duration pairs. A magnitude of 0.0 indicates a pause. Signed-off-by: Guido Günther --- data/meson.build | 5 ++++- data/org.sigxcpu.Feedback.Haptic.xml | 32 ++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 data/org.sigxcpu.Feedback.Haptic.xml diff --git a/data/meson.build b/data/meson.build index 7ff25cc..728989d 100644 --- a/data/meson.build +++ b/data/meson.build @@ -4,7 +4,10 @@ namespace = 'LfbGdbus' generated_dbus_sources = [] -dbus_interfaces = [ 'org.sigxcpu.Feedback.xml' ] +dbus_interfaces = [ + 'org.sigxcpu.Feedback.xml', + 'org.sigxcpu.Feedback.Haptic.xml', +] generated_dbus_sources += gnome.gdbus_codegen('lfb-gdbus', sources : dbus_interfaces, diff --git a/data/org.sigxcpu.Feedback.Haptic.xml b/data/org.sigxcpu.Feedback.Haptic.xml new file mode 100644 index 0000000..ea6c4ee --- /dev/null +++ b/data/org.sigxcpu.Feedback.Haptic.xml @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + +