Safe Haskell | None |
---|---|
Language | Haskell2010 |
OpenXR.Core10.Haptics
Synopsis
- applyHapticFeedback :: forall a io. (ToCStruct a, MonadIO io) => Session -> HapticActionInfo -> ("hapticFeedback" ::: a) -> io Result
- stopHapticFeedback :: forall io. MonadIO io => Session -> HapticActionInfo -> io Result
- data HapticBaseHeader = HapticBaseHeader {}
- class ToCStruct a => IsHaptic a where
- toHapticBaseHeader :: a -> HapticBaseHeader
- data HapticActionInfo = HapticActionInfo {
- action :: Ptr Action_T
- subactionPath :: Path
Documentation
Arguments
:: forall a io. (ToCStruct a, MonadIO io) | |
=> Session |
|
-> HapticActionInfo |
|
-> ("hapticFeedback" ::: a) |
|
-> io Result |
xrApplyHapticFeedback - Apply haptic feedback
Parameter Descriptions
Description
Triggers a haptic event through the specified action of type
TYPE_HAPTIC_VIBRATION
. The runtime
should deliver this request to the appropriate device, but exactly
which device, if any, this event is sent to is up to the runtime to
decide. If an appropriate device is unavailable the runtime may ignore
this request for haptic feedback.
If another haptic event from this session is currently happening on the device bound to this action, the runtime must interrupt that other event and replace it with the new one.
Return Codes
See Also
HapticActionInfo
, HapticBaseHeader
,
HapticVibration
,
Session
, stopHapticFeedback
Arguments
:: forall io. MonadIO io | |
=> Session |
|
-> HapticActionInfo |
|
-> io Result |
data HapticBaseHeader Source #
XrHapticBaseHeader - Base header for haptic feedback
Valid Usage (Implicit)
See Also
HapticVibration
,
InteractionProfileAnalogThresholdVALVE
,
StructureType
, applyHapticFeedback
Constructors
HapticBaseHeader | |
Fields
|
Instances
class ToCStruct a => IsHaptic a where Source #
Methods
toHapticBaseHeader :: a -> HapticBaseHeader Source #
Instances
IsHaptic HapticVibration Source # | |
Defined in OpenXR.Core10.OtherTypes Methods toHapticBaseHeader :: HapticVibration -> HapticBaseHeader Source # |
data HapticActionInfo Source #
XrHapticActionInfo - Information to output haptic feedback
Member Descriptions
Description
See ActionCreateInfo
for a description of
subaction paths, and the restrictions on their use.
Valid Usage (Implicit)
See Also
Action
,
https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrPath,
StructureType
,
applyHapticFeedback
, stopHapticFeedback
Constructors
HapticActionInfo | |
Fields
|