Package org.lwjgl.openvr
Class VREventDualAnalog
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.VREventDualAnalog
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class VREventDualAnalog extends org.lwjgl.system.StructMember documentation
x– coordinates are -1..1 analog valuesy– coordinates are -1..1 analog valuestransformedX– transformed by the center and radius numbers provided by the overlaytransformedY– transformed by the center and radius numbers provided by the overlay
Layout
struct VREvent_DualAnalog_t { float x; float y; float transformedX; float transformedY; EDualAnalogWhich which; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVREventDualAnalog.BufferAn array ofVREventDualAnalogstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intSIZEOFThe struct size in bytes.static intTRANSFORMEDX
TRANSFORMEDY
WHICH
X
YThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VREventDualAnalog(java.nio.ByteBuffer container)Creates aVREventDualAnaloginstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VREventDualAnalogcreate(long address)Returns a newVREventDualAnaloginstance for the specified memory address.static VREventDualAnalog.Buffercreate(long address, int capacity)Create aVREventDualAnalog.Bufferinstance at the specified memory.static VREventDualAnalogcreateSafe(long address)static VREventDualAnalog.BuffercreateSafe(long address, int capacity)static floatntransformedX(long struct)Unsafe version oftransformedX().static floatntransformedY(long struct)Unsafe version oftransformedY().static intnwhich(long struct)Unsafe version ofwhich().static floatnx(long struct)Unsafe version ofx().static floatny(long struct)Unsafe version ofy().intsizeof()floattransformedX()Returns the value of thetransformedXfield.floattransformedY()Returns the value of thetransformedYfield.intwhich()Returns the value of thewhichfield.floatx()Returns the value of thexfield.floaty()Returns the value of theyfield.
-
-
-
Constructor Detail
-
VREventDualAnalog
public VREventDualAnalog(java.nio.ByteBuffer container)
Creates aVREventDualAnaloginstance at the current position of the specifiedByteBuffercontainer. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
x
public float x()
Returns the value of thexfield.
-
y
public float y()
Returns the value of theyfield.
-
transformedX
public float transformedX()
Returns the value of thetransformedXfield.
-
transformedY
public float transformedY()
Returns the value of thetransformedYfield.
-
which
public int which()
Returns the value of thewhichfield.
-
create
public static VREventDualAnalog create(long address)
Returns a newVREventDualAnaloginstance for the specified memory address.
-
createSafe
@Nullable public static VREventDualAnalog createSafe(long address)
-
create
public static VREventDualAnalog.Buffer create(long address, int capacity)
Create aVREventDualAnalog.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VREventDualAnalog.Buffer createSafe(long address, int capacity)
-
nx
public static float nx(long struct)
Unsafe version ofx().
-
ny
public static float ny(long struct)
Unsafe version ofy().
-
ntransformedX
public static float ntransformedX(long struct)
Unsafe version oftransformedX().
-
ntransformedY
public static float ntransformedY(long struct)
Unsafe version oftransformedY().
-
nwhich
public static int nwhich(long struct)
Unsafe version ofwhich().
-
-