Documentation
¶
Overview ¶
Package InputEventJoypadMotion provides methods for working with InputEventJoypadMotion object instances.
Index ¶
- type Advanced
- type Any
- type Instance
- func (self Instance) AsInputEvent() InputEvent.Instance
- func (self Instance) AsInputEventJoypadMotion() Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsRefCounted() [1]gd.RefCounted
- func (self Instance) AsResource() Resource.Instance
- func (self Instance) Axis() JoyAxis
- func (self Instance) AxisValue() Float.X
- func (self Instance) SetAxis(value JoyAxis)
- func (self Instance) SetAxisValue(value Float.X)
- func (self *Instance) UnsafePointer() unsafe.Pointer
- func (self Instance) Virtual(name string) reflect.Value
- type JoyAxis
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 Instance ¶
type Instance [1]gdclass.InputEventJoypadMotion
Stores information about joystick motions. One [InputEventJoypadMotion] represents one axis at a time. For gamepad buttons, see [InputEventJoypadButton].
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.
func (Instance) AsInputEvent ¶
func (self Instance) AsInputEvent() InputEvent.Instance
func (Instance) AsInputEventJoypadMotion ¶
func (Instance) AsRefCounted ¶
func (self Instance) AsRefCounted() [1]gd.RefCounted
func (Instance) AsResource ¶
func (Instance) SetAxisValue ¶
func (*Instance) UnsafePointer ¶
type JoyAxis ¶
type JoyAxis int
const ( /*An invalid game controller axis.*/ JoyAxisInvalid JoyAxis = -1 /*Game controller left joystick x-axis.*/ JoyAxisLeftX JoyAxis = 0 /*Game controller left joystick y-axis.*/ JoyAxisLeftY JoyAxis = 1 /*Game controller right joystick x-axis.*/ JoyAxisRightX JoyAxis = 2 /*Game controller right joystick y-axis.*/ JoyAxisRightY JoyAxis = 3 /*Game controller left trigger axis.*/ JoyAxisTriggerLeft JoyAxis = 4 /*Game controller right trigger axis.*/ JoyAxisTriggerRight JoyAxis = 5 /*The number of SDL game controller axes.*/ JoyAxisSdlMax JoyAxis = 6 /*The maximum number of game controller axes: OpenVR supports up to 5 Joysticks making a total of 10 axes.*/ JoyAxisMax JoyAxis = 10 )
Click to show internal directories.
Click to hide internal directories.