Skip to content
0.2.0-dev Download ZIP
22 lines ·1.2 KB Raw
1<?xml version="1.0" encoding="UTF-8" ?>
2<class name="OpenXRHapticVibration" inherits="OpenXRHapticBase" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">
3 <brief_description>
4 Vibration haptic feedback.
5 </brief_description>
6 <description>
7 This haptic feedback resource makes it possible to define a vibration based haptic feedback pulse that can be triggered through actions in the OpenXR action map.
8 </description>
9 <tutorials>
10 </tutorials>
11 <members>
12 <member name="amplitude" type="float" setter="set_amplitude" getter="get_amplitude" default="1.0">
13 The amplitude of the pulse between [code]0.0[/code] and [code]1.0[/code].
14 </member>
15 <member name="duration" type="int" setter="set_duration" getter="get_duration" default="-1">
16 The duration of the pulse in nanoseconds. Use [code]-1[/code] for a minimum duration pulse for the current XR runtime.
17 </member>
18 <member name="frequency" type="float" setter="set_frequency" getter="get_frequency" default="0.0">
19 The frequency of the pulse in Hz. [code]0.0[/code] will let the XR runtime chose an optimal frequency for the device used.
20 </member>
21 </members>
22</class>