Package org.lwjgl.openvr
Class VREventProcess
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.VREventProcess
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class VREventProcess extends org.lwjgl.system.Struct
Used for events about processes.Member documentation
bConnectionLost
– if the associated event was triggered by a connection loss
Layout
struct VREvent_Process_t { uint32_t pid; uint32_t oldPid; bool bForced; bool bConnectionLost; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VREventProcess.Buffer
An array ofVREventProcess
structs.
-
Constructor Summary
Constructors Constructor Description VREventProcess(java.nio.ByteBuffer container)
Creates aVREventProcess
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
bConnectionLost()
Returns the value of thebConnectionLost
field.boolean
bForced()
Returns the value of thebForced
field.static VREventProcess
create(long address)
Returns a newVREventProcess
instance for the specified memory address.static VREventProcess.Buffer
create(long address, int capacity)
Create aVREventProcess.Buffer
instance at the specified memory.static VREventProcess
createSafe(long address)
static VREventProcess.Buffer
createSafe(long address, int capacity)
static boolean
nbConnectionLost(long struct)
Unsafe version ofbConnectionLost()
.static boolean
nbForced(long struct)
Unsafe version ofbForced()
.static int
noldPid(long struct)
Unsafe version ofoldPid()
.static int
npid(long struct)
Unsafe version ofpid()
.int
oldPid()
Returns the value of theoldPid
field.int
pid()
Returns the value of thepid
field.int
sizeof()
-
-
-
Constructor Detail
-
VREventProcess
public VREventProcess(java.nio.ByteBuffer container)
Creates aVREventProcess
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
-
pid
public int pid()
Returns the value of thepid
field.
-
oldPid
public int oldPid()
Returns the value of theoldPid
field.
-
bForced
public boolean bForced()
Returns the value of thebForced
field.
-
bConnectionLost
public boolean bConnectionLost()
Returns the value of thebConnectionLost
field.
-
create
public static VREventProcess create(long address)
Returns a newVREventProcess
instance for the specified memory address.
-
createSafe
@Nullable public static VREventProcess createSafe(long address)
-
create
public static VREventProcess.Buffer create(long address, int capacity)
Create aVREventProcess.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VREventProcess.Buffer createSafe(long address, int capacity)
-
npid
public static int npid(long struct)
Unsafe version ofpid()
.
-
noldPid
public static int noldPid(long struct)
Unsafe version ofoldPid()
.
-
nbForced
public static boolean nbForced(long struct)
Unsafe version ofbForced()
.
-
nbConnectionLost
public static boolean nbConnectionLost(long struct)
Unsafe version ofbConnectionLost()
.
-
-