File: org.sigxcpu.Feedback.Haptic.xml

package info (click to toggle)
feedbackd 0.8.8-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,068 kB
  • sloc: ansic: 7,926; xml: 97; makefile: 31; sh: 27; python: 8
file content (33 lines) | stat: -rw-r--r-- 1,066 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?xml version="1.0" encoding="UTF-8" ?>

<node>
  <!-- org.sigxcpu.Feedback.Haptic
       @short_description: Interface to make a device vibrate

       This D-Bus interface is used to make a device's haptic motor
       vibrate. This is can be useful e.g. for games.

       To provider user feedback the event based interface should be
       preferred.
   -->
  <interface name="org.sigxcpu.Feedback.Haptic">
    <!--
        Vibrate:
        @app_id: The application id usually in "reverse DNS" format
        @pattern: The vibration pattern.
        @success: Whether vibration was triggered

        Triggers the given vibration pattern on the haptic device. The
        pattern is a sequence of relative amplitude and duration pairs.
        The amplitude must be between 0.0 and 1.0, durations are in
        milliseconds.
    -->
    <method name="Vibrate">
      <arg direction="in" name="app_id" type="s"/>
      <arg direction="in" name="pattern" type="a(du)"/>
      <arg direction="out" name="success" type="b"/>
    </method>

  </interface>

</node>