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.Struct
Member 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 class
VREventDualAnalog.Buffer
An array ofVREventDualAnalog
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
SIZEOF
The struct size in bytes.static int
TRANSFORMEDX
TRANSFORMEDY
WHICH
X
YThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VREventDualAnalog(java.nio.ByteBuffer container)
Creates aVREventDualAnalog
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VREventDualAnalog
create(long address)
Returns a newVREventDualAnalog
instance for the specified memory address.static VREventDualAnalog.Buffer
create(long address, int capacity)
Create aVREventDualAnalog.Buffer
instance at the specified memory.static VREventDualAnalog
createSafe(long address)
static VREventDualAnalog.Buffer
createSafe(long address, int capacity)
static float
ntransformedX(long struct)
Unsafe version oftransformedX()
.static float
ntransformedY(long struct)
Unsafe version oftransformedY()
.static int
nwhich(long struct)
Unsafe version ofwhich()
.static float
nx(long struct)
Unsafe version ofx()
.static float
ny(long struct)
Unsafe version ofy()
.int
sizeof()
float
transformedX()
Returns the value of thetransformedX
field.float
transformedY()
Returns the value of thetransformedY
field.int
which()
Returns the value of thewhich
field.float
x()
Returns the value of thex
field.float
y()
Returns the value of they
field.
-
-
-
Constructor Detail
-
VREventDualAnalog
public VREventDualAnalog(java.nio.ByteBuffer container)
Creates aVREventDualAnalog
instance at the current position of the specifiedByteBuffer
container. 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:
sizeof
in classorg.lwjgl.system.Struct
-
x
public float x()
Returns the value of thex
field.
-
y
public float y()
Returns the value of they
field.
-
transformedX
public float transformedX()
Returns the value of thetransformedX
field.
-
transformedY
public float transformedY()
Returns the value of thetransformedY
field.
-
which
public int which()
Returns the value of thewhich
field.
-
create
public static VREventDualAnalog create(long address)
Returns a newVREventDualAnalog
instance 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.Buffer
instance 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()
.
-
-