openxr-0.1: Bindings to the OpenXR API
Safe HaskellNone
LanguageHaskell2010

OpenXR.Core10.Haptics

Synopsis

Documentation

applyHapticFeedback Source #

Arguments

:: forall a io. (ToCStruct a, MonadIO io) 
=> Session

session is the Session to start outputting to.

session must be a valid Session handle

-> HapticActionInfo

hapticActionInfo is a pointer to HapticActionInfo to provide action and subaction paths information.

hapticActionInfo must be a pointer to a valid HapticActionInfo structure

-> ("hapticFeedback" ::: a)

hapticFeedback is a pointer to a haptic event structure which starts with an HapticBaseHeader.

hapticFeedback must be a pointer to a valid HapticBaseHeader-based structure. See also: HapticVibration

-> 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

Success
Failure

See Also

HapticActionInfo, HapticBaseHeader, HapticVibration, Session, stopHapticFeedback

stopHapticFeedback Source #

Arguments

:: forall io. MonadIO io 
=> Session

session is the Session to stop outputting to.

session must be a valid Session handle

-> HapticActionInfo

hapticActionInfo is a pointer to an HapticActionInfo to provide action and subaction path information.

hapticActionInfo must be a pointer to a valid HapticActionInfo structure

-> io Result 

xrStopHapticFeedback - Stop haptic feedback

Parameter Descriptions

Description

If a haptic event from this Action is in progress, when this function is called the runtime must stop that event.

Return Codes

Success
Failure

See Also

HapticActionInfo, Session, applyHapticFeedback

data HapticBaseHeader Source #

XrHapticBaseHeader - Base header for haptic feedback

Valid Usage (Implicit)

See Also

HapticVibration, InteractionProfileAnalogThresholdVALVE, StructureType, applyHapticFeedback

Constructors

HapticBaseHeader 

Fields

Instances

Instances details
Eq HapticBaseHeader Source # 
Instance details

Defined in OpenXR.Core10.Haptics

Show HapticBaseHeader Source # 
Instance details

Defined in OpenXR.Core10.Haptics

Storable HapticBaseHeader Source # 
Instance details

Defined in OpenXR.Core10.Haptics

Zero HapticBaseHeader Source # 
Instance details

Defined in OpenXR.Core10.Haptics

ToCStruct HapticBaseHeader Source # 
Instance details

Defined in OpenXR.Core10.Haptics

FromCStruct HapticBaseHeader Source # 
Instance details

Defined in OpenXR.Core10.Haptics

Inheritable HapticBaseHeader Source # 
Instance details

Defined in OpenXR.Core10.Haptics

class ToCStruct a => IsHaptic a where Source #

Instances

Instances details
IsHaptic HapticVibration Source # 
Instance details

Defined in OpenXR.Core10.OtherTypes

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

Instances

Instances details
Eq HapticActionInfo Source # 
Instance details

Defined in OpenXR.Core10.Haptics

Show HapticActionInfo Source # 
Instance details

Defined in OpenXR.Core10.Haptics

Storable HapticActionInfo Source # 
Instance details

Defined in OpenXR.Core10.Haptics

Zero HapticActionInfo Source # 
Instance details

Defined in OpenXR.Core10.Haptics

ToCStruct HapticActionInfo Source # 
Instance details

Defined in OpenXR.Core10.Haptics

FromCStruct HapticActionInfo Source # 
Instance details

Defined in OpenXR.Core10.Haptics