Safe Haskell | None |
---|---|
Language | Haskell2010 |
Name
XR_VALVE_analog_threshold - instance extension
Specification
See XR_VALVE_analog_threshold in the main specification for complete information.
Registered Extension Number
80
Revision
1
Extension and Version Dependencies
- Requires OpenXR 1.0
See Also
InteractionProfileAnalogThresholdVALVE
Document Notes
For more information, see the OpenXR Specification
This page is a generated document. Fixes and changes should be made to the generator scripts, not directly.
Synopsis
- data InteractionProfileAnalogThresholdVALVE = InteractionProfileAnalogThresholdVALVE {}
- type VALVE_analog_threshold_SPEC_VERSION = 1
- pattern VALVE_analog_threshold_SPEC_VERSION :: forall a. Integral a => a
- type VALVE_ANALOG_THRESHOLD_EXTENSION_NAME = "XR_VALVE_analog_threshold"
- pattern VALVE_ANALOG_THRESHOLD_EXTENSION_NAME :: forall a. (Eq a, IsString a) => a
Documentation
data InteractionProfileAnalogThresholdVALVE Source #
XrInteractionProfileAnalogThresholdVALVE - Interaction profile dpad binding
Member Descriptions
Description
Applications can chain an InteractionProfileAnalogThresholdVALVE
struct on the next chain of any
suggestInteractionProfileBindings
call for each
analog to boolean conversion for which it wants to set the threshold. If
a threshold struct is present for a given conversion, the runtime must
use those thresholds instead of applying its own whenever it is using
the binding suggested by the application.
onThreshold
and offThreshold
permit allow the application to specify
that it wants hysteresis to be applied to the threshold operation. If
onThreshold
is smaller than offThreshold
, the runtime must return
ERROR_VALIDATION_FAILURE
.
onHaptic
and offHaptic
allow the application to specify that it
wants automatic haptic feedback to be generated when the boolean output
of the threshold operation changes from false to true or vice versa. If
these fields are not NULL, the runtime must trigger a haptic output
with the specified characteristics. If the device has multiple haptic
outputs, the runtime should use the haptic output that is most
appropriate for the specified input path.
If a suggested binding with action
and binding
is not in the binding
list for this interaction profile, the runtime must return
ERROR_PATH_UNSUPPORTED
.
Valid Usage (Implicit)
-
The @@ extension must be enabled prior to using
InteractionProfileAnalogThresholdVALVE
-
type
must beTYPE_INTERACTION_PROFILE_ANALOG_THRESHOLD_VALVE
-
next
must beNULL
or a valid pointer to the next structure in a structure chain -
action
must be a validAction
handle -
If
onHaptic
is notNULL
,onHaptic
must be a pointer to a validHapticBaseHeader
-based structure. See also:HapticVibration
-
If
offHaptic
is notNULL
,offHaptic
must be a pointer to a validHapticBaseHeader
-based structure. See also:HapticVibration
See Also
Action
,
HapticBaseHeader
,
https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrPath,
StructureType
InteractionProfileAnalogThresholdVALVE | |
|
Instances
type VALVE_analog_threshold_SPEC_VERSION = 1 Source #
pattern VALVE_analog_threshold_SPEC_VERSION :: forall a. Integral a => a Source #
type VALVE_ANALOG_THRESHOLD_EXTENSION_NAME = "XR_VALVE_analog_threshold" Source #
pattern VALVE_ANALOG_THRESHOLD_EXTENSION_NAME :: forall a. (Eq a, IsString a) => a Source #