Documentation
¶
Overview ¶
The DPad binding modifier converts an axis input to a dpad output, emulating a DPad. New input paths for each dpad direction will be added to the interaction profile. When bound to actions the DPad emulation will be activated. You should not combine dpad inputs with normal inputs in the same action set for the same control, this will result in an error being returned when suggested bindings are submitted to OpenXR.
See XR_EXT_dpad_binding for in-depth details.
Note: If the DPad binding modifier extension is enabled, all dpad binding paths will be available in the action map. Adding the modifier to an interaction profile allows you to further customize the behavior.
Index ¶
- type Advanced
- type Any
- type Extension
- func (self *Extension[T]) AsObject() [1]gd.Object
- func (self *Extension[T]) AsOpenXRBindingModifier() OpenXRBindingModifier.Instance
- func (self *Extension[T]) AsOpenXRDpadBindingModifier() Instance
- func (self *Extension[T]) AsOpenXRIPBindingModifier() OpenXRIPBindingModifier.Instance
- func (self *Extension[T]) AsRefCounted() [1]gd.RefCounted
- func (self *Extension[T]) AsResource() Resource.Instance
- type ID
- type Instance
- func (self Instance) ActionSet() OpenXRActionSet.Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsOpenXRBindingModifier() OpenXRBindingModifier.Instance
- func (self Instance) AsOpenXRDpadBindingModifier() Instance
- func (self Instance) AsOpenXRIPBindingModifier() OpenXRIPBindingModifier.Instance
- func (self Instance) AsRefCounted() [1]gd.RefCounted
- func (self Instance) AsResource() Resource.Instance
- func (self Instance) CenterRegion() Float.X
- func (self Instance) ID() ID
- func (self Instance) InputPath() string
- func (self Instance) IsSticky() bool
- func (self Instance) OffHaptic() OpenXRHapticBase.Instance
- func (self Instance) OnHaptic() OpenXRHapticBase.Instance
- func (self Instance) SetActionSet(value OpenXRActionSet.Instance)
- func (self Instance) SetCenterRegion(value Float.X)
- func (self Instance) SetInputPath(value string)
- func (self Instance) SetIsSticky(value bool)
- func (self *Instance) SetObject(obj [1]gd.Object) bool
- func (self Instance) SetOffHaptic(value OpenXRHapticBase.Instance)
- func (self Instance) SetOnHaptic(value OpenXRHapticBase.Instance)
- func (self Instance) SetThreshold(value Float.X)
- func (self Instance) SetThresholdReleased(value Float.X)
- func (self Instance) SetWedgeAngle(value Angle.Radians)
- func (self Instance) Threshold() Float.X
- func (self Instance) ThresholdReleased() Float.X
- func (self Instance) Virtual(name string) reflect.Value
- func (self Instance) WedgeAngle() Angle.Radians
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Advanced ¶
type Advanced = class
Advanced exposes a 1:1 low-level instance of the class, undocumented, for those who know what they are doing.
type Extension ¶
Extension can be embedded in a new struct to create an extension of this class. T should be the type that is embedding this Extension
func (*Extension[T]) AsOpenXRBindingModifier ¶
func (self *Extension[T]) AsOpenXRBindingModifier() OpenXRBindingModifier.Instance
func (*Extension[T]) AsOpenXRDpadBindingModifier ¶
func (*Extension[T]) AsOpenXRIPBindingModifier ¶
func (self *Extension[T]) AsOpenXRIPBindingModifier() OpenXRIPBindingModifier.Instance
func (*Extension[T]) AsRefCounted ¶
func (self *Extension[T]) AsRefCounted() [1]gd.RefCounted
func (*Extension[T]) AsResource ¶
type ID ¶
ID is a typed object ID (reference) to an instance of this class, use it to store references to objects with unknown lifetimes, as an ID will not panic on use if the underlying object has been destroyed.
type Instance ¶
type Instance [1]gdclass.OpenXRDpadBindingModifier
Instance of the class with convieniently typed arguments and results.
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.
func (Instance) ActionSet ¶
func (self Instance) ActionSet() OpenXRActionSet.Instance
func (Instance) AsOpenXRBindingModifier ¶
func (self Instance) AsOpenXRBindingModifier() OpenXRBindingModifier.Instance
func (Instance) AsOpenXRDpadBindingModifier ¶
func (Instance) AsOpenXRIPBindingModifier ¶
func (self Instance) AsOpenXRIPBindingModifier() OpenXRIPBindingModifier.Instance
func (Instance) AsRefCounted ¶
func (self Instance) AsRefCounted() [1]gd.RefCounted
func (Instance) AsResource ¶
func (Instance) CenterRegion ¶
func (Instance) OffHaptic ¶
func (self Instance) OffHaptic() OpenXRHapticBase.Instance
func (Instance) OnHaptic ¶
func (self Instance) OnHaptic() OpenXRHapticBase.Instance
func (Instance) SetActionSet ¶
func (self Instance) SetActionSet(value OpenXRActionSet.Instance)
func (Instance) SetCenterRegion ¶
func (Instance) SetInputPath ¶
func (Instance) SetIsSticky ¶
func (Instance) SetOffHaptic ¶
func (self Instance) SetOffHaptic(value OpenXRHapticBase.Instance)
func (Instance) SetOnHaptic ¶
func (self Instance) SetOnHaptic(value OpenXRHapticBase.Instance)