com.jme3.system.jopenvr.VRControllerState_t Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jme3-vr Show documentation
Show all versions of jme3-vr Show documentation
jMonkeyEngine is a 3-D game engine for adventurous Java developers
package com.jme3.system.jopenvr;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;
import java.util.Arrays;
import java.util.List;
/**
* native declaration : headers\openvr_capi.h:1436
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA.
*/
public class VRControllerState_t extends Structure {
public int unPacketNum;
public long ulButtonPressed;
public long ulButtonTouched;
/**
* struct vr::VRControllerAxis_t[5]
* C type : VRControllerAxis_t[5]
*/
public VRControllerAxis_t[] rAxis = new VRControllerAxis_t[5];
public VRControllerState_t() {
super();
}
@Override
protected List getFieldOrder() {
return Arrays.asList("unPacketNum", "ulButtonPressed", "ulButtonTouched", "rAxis");
}
/**
* @param rAxis struct vr::VRControllerAxis_t[5]
* C type : VRControllerAxis_t[5]
*/
public VRControllerState_t(int unPacketNum, long ulButtonPressed, long ulButtonTouched, VRControllerAxis_t rAxis[]) {
super();
this.unPacketNum = unPacketNum;
this.ulButtonPressed = ulButtonPressed;
this.ulButtonTouched = ulButtonTouched;
if ((rAxis.length != this.rAxis.length))
throw new IllegalArgumentException("Wrong array size !");
this.rAxis = rAxis;
}
public VRControllerState_t(Pointer peer) {
super(peer);
}
public static class ByReference extends VRControllerState_t implements Structure.ByReference {
};
public static class ByValue extends VRControllerState_t implements Structure.ByValue {
};
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy