Documentation
¶
Overview ¶
Package OpenXRAction provides methods for working with OpenXRAction object instances.
Index ¶
- type ActionType
- type Advanced
- type Any
- type Instance
- func (self Instance) ActionType() gdclass.OpenXRActionActionType
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsOpenXRAction() Instance
- func (self Instance) AsRefCounted() [1]gd.RefCounted
- func (self Instance) AsResource() Resource.Instance
- func (self Instance) LocalizedName() string
- func (self Instance) SetActionType(value gdclass.OpenXRActionActionType)
- func (self Instance) SetLocalizedName(value string)
- func (self Instance) SetToplevelPaths(value []string)
- func (self Instance) ToplevelPaths() []string
- func (self *Instance) UnsafePointer() unsafe.Pointer
- func (self Instance) Virtual(name string) reflect.Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionType ¶
type ActionType = gdclass.OpenXRActionActionType //gd:OpenXRAction.ActionType
const ( /*This action provides a boolean value.*/ OpenxrActionBool ActionType = 0 /*This action provides a float value between [code]0.0[/code] and [code]1.0[/code] for any analog input such as triggers.*/ OpenxrActionFloat ActionType = 1 /*This action provides a [Vector2] value and can be bound to embedded trackpads and joysticks.*/ OpenxrActionVector2 ActionType = 2 OpenxrActionPose ActionType = 3 )
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 Instance ¶
type Instance [1]gdclass.OpenXRAction
This resource defines an OpenXR action. Actions can be used both for inputs (buttons, joysticks, triggers, etc.) and outputs (haptics). OpenXR performs automatic conversion between action type and input type whenever possible. An analog trigger bound to a boolean action will thus return [code]false[/code] if the trigger is depressed and [code]true[/code] if pressed fully. Actions are not directly bound to specific devices, instead OpenXR recognizes a limited number of top level paths that identify devices by usage. We can restrict which devices an action can be bound to by these top level paths. For instance an action that should only be used for hand held controllers can have the top level paths "/user/hand/left" and "/user/hand/right" associated with them. See the [url=https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#semantic-path-reserved]reserved path section in the OpenXR specification[/url] for more info on the top level paths. Note that the name of the resource is used to register the action with.
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.
func (Instance) ActionType ¶
func (self Instance) ActionType() gdclass.OpenXRActionActionType
func (Instance) AsOpenXRAction ¶
func (Instance) AsRefCounted ¶
func (self Instance) AsRefCounted() [1]gd.RefCounted
func (Instance) AsResource ¶
func (Instance) LocalizedName ¶
func (Instance) SetActionType ¶
func (self Instance) SetActionType(value gdclass.OpenXRActionActionType)