struct GLFWgamepadstate {
unsigned char buttons[15];
float axes[6];
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | GLFWGamepadState.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | AXES
The struct member offsets. |
| public static final int | BUTTONS
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | GLFWGamepadState(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public FloatBuffer | |
| public float | |
| public GLFWGamepadState | |
| public GLFWGamepadState | |
| public ByteBuffer | |
| public byte | |
| public GLFWGamepadState | |
| public GLFWGamepadState | |
| public static GLFWGamepadState | |
| public static GLFWGamepadState. | calloc(int
the buffer capacity capacity)Returns a new |
| public static GLFWGamepadState | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static GLFWGamepadState. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static GLFWGamepadState | |
| public static GLFWGamepadState | |
| public static GLFWGamepadState. | |
| public static GLFWGamepadState. | |
| protected GLFWGamepadState | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static GLFWGamepadState | |
| public static GLFWGamepadState | |
| public static GLFWGamepadState. | create(int
the buffer capacity capacity)Returns a new |
| public static GLFWGamepadState. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static GLFWGamepadState | |
| public static GLFWGamepadState. | |
| public static GLFWGamepadState | |
| public static GLFWGamepadState. | malloc(int
the buffer capacity capacity)Returns a new |
| public static GLFWGamepadState | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static GLFWGamepadState. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static GLFWGamepadState | |
| public static GLFWGamepadState | |
| public static GLFWGamepadState. | |
| public static GLFWGamepadState. | |
| public static FloatBuffer | |
| public static float | |
| public static void | |
| public static void | |
| public static ByteBuffer | |
| public static byte | |
| public static void | |
| public static void | |
| public GLFWGamepadState | |
| public GLFWGamepadState | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| AXES | back to summary |
|---|---|
| public static final int AXES The struct member offsets. | |
| BUTTONS | back to summary |
|---|---|
| public static final int BUTTONS The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| GLFWGamepadState | back to summary |
|---|---|
| protected GLFWGamepadState(long address, ByteBuffer container) | |
| GLFWGamepadState | back to summary |
|---|---|
| public GLFWGamepadState(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| axes | back to summary |
|---|---|
| public FloatBuffer axes() the states of each gamepad axis, in the range -1.0 to 1.0 inclusive
| |
| axes | back to summary |
|---|---|
| public float axes(int index) the states of each gamepad axis, in the range -1.0 to 1.0 inclusive | |
| axes | back to summary |
|---|---|
| public GLFWGamepadState axes(FloatBuffer value) Copies the specified | |
| axes | back to summary |
|---|---|
| public GLFWGamepadState axes(int index, float value) Sets the specified value at the specified index of the | |
| buttons | back to summary |
|---|---|
| public ByteBuffer buttons() the states of each gamepad button,
| |
| buttons | back to summary |
|---|---|
| public byte buttons(int index) the states of each gamepad button,
| |
| buttons | back to summary |
|---|---|
| public GLFWGamepadState buttons(ByteBuffer value) Copies the specified | |
| buttons | back to summary |
|---|---|
| public GLFWGamepadState buttons(int index, byte value) Sets the specified value at the specified index of the | |
| calloc | back to summary |
|---|---|
| public static GLFWGamepadState calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static GLFWGamepadState. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static GLFWGamepadState calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static GLFWGamepadState. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static GLFWGamepadState callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static GLFWGamepadState callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static GLFWGamepadState. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static GLFWGamepadState. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| create | back to summary |
|---|---|
| protected GLFWGamepadState create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static GLFWGamepadState create() Returns a new | |
| create | back to summary |
|---|---|
| public static GLFWGamepadState create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static GLFWGamepadState. Returns a new
| |
| create | back to summary |
|---|---|
| public static GLFWGamepadState. Create a
| |
| createSafe | back to summary |
|---|---|
| public static GLFWGamepadState createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static GLFWGamepadState. Like
| |
| malloc | back to summary |
|---|---|
| public static GLFWGamepadState malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static GLFWGamepadState. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static GLFWGamepadState malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static GLFWGamepadState. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static GLFWGamepadState mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static GLFWGamepadState mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static GLFWGamepadState. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static GLFWGamepadState. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| naxes | back to summary |
|---|---|
| public static FloatBuffer naxes(long struct) Unsafe version of | |
| naxes | back to summary |
|---|---|
| public static float naxes(long struct, int index) Unsafe version of | |
| naxes | back to summary |
|---|---|
| public static void naxes(long struct, FloatBuffer value) Unsafe version of | |
| naxes | back to summary |
|---|---|
| public static void naxes(long struct, int index, float value) Unsafe version of | |
| nbuttons | back to summary |
|---|---|
| public static ByteBuffer nbuttons(long struct) Unsafe version of | |
| nbuttons | back to summary |
|---|---|
| public static byte nbuttons(long struct, int index) Unsafe version of | |
| nbuttons | back to summary |
|---|---|
| public static void nbuttons(long struct, ByteBuffer value) Unsafe version of | |
| nbuttons | back to summary |
|---|---|
| public static void nbuttons(long struct, int index, byte value) Unsafe version of | |
| set | back to summary |
|---|---|
| public GLFWGamepadState set(ByteBuffer buttons, FloatBuffer axes) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public GLFWGamepadState set(GLFWGamepadState src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
GLFWGamepadState structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final GLFWGamepadState |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public FloatBuffer | |
| public float | |
| public GLFWGamepadState. | |
| public GLFWGamepadState. | axes(int index, float value)
Sets the specified value at the specified index of the |
| public ByteBuffer | |
| public byte | |
| public GLFWGamepadState. | |
| public GLFWGamepadState. | buttons(int index, byte value)
Sets the specified value at the specified index of the |
| protected GLFWGamepadState | |
| protected GLFWGamepadState. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final GLFWGamepadState ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| axes | back to summary |
|---|---|
public FloatBuffer axes()
| |
| axes | back to summary |
|---|---|
public float axes(int index)
| |
| axes | back to summary |
|---|---|
| public GLFWGamepadState. Copies the specified | |
| axes | back to summary |
|---|---|
| public GLFWGamepadState. Sets the specified value at the specified index of the | |
| buttons | back to summary |
|---|---|
public ByteBuffer buttons()
| |
| buttons | back to summary |
|---|---|
public byte buttons(int index)
| |
| buttons | back to summary |
|---|---|
| public GLFWGamepadState. Copies the specified | |
| buttons | back to summary |
|---|---|
| public GLFWGamepadState. Sets the specified value at the specified index of the | |
| getElementFactory | back to summary |
|---|---|
| protected GLFWGamepadState getElementFactory() Implements abstract org.
| |
| self | back to summary |
|---|---|
| protected GLFWGamepadState. Implements abstract org.
| |