org.sigxcpu.Feedback.Haptic.xml 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <node>
  3. <!-- org.sigxcpu.Feedback.Haptic
  4. @short_description: Interface to make a device vibrate
  5. This D-Bus interface is used to make a device's haptic motor
  6. vibrate. This is can be useful e.g. for games.
  7. To provider user feedback the event based interface should be
  8. preferred.
  9. -->
  10. <interface name="org.sigxcpu.Feedback.Haptic">
  11. <!--
  12. Vibrate:
  13. @app_id: The application id usually in "reverse DNS" format
  14. @pattern: The vibration pattern.
  15. @success: Whether vibration was triggered
  16. Triggers the given vibration pattern on the haptic device. The
  17. pattern is a sequence of relative amplitude and duration pairs.
  18. The amplitude must be between 0.0 and 1.0.
  19. -->
  20. <method name="Vibrate">
  21. <arg direction="in" name="app_id" type="s"/>
  22. <arg direction="in" name="pattern" type="a(du)"/>
  23. <arg direction="out" name="success" type="b"/>
  24. </method>
  25. </interface>
  26. </node>