Package org.lwjgl.sdl
Class SDL_VirtualJoystickDesc.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<SDL_VirtualJoystickDesc.Buffer>
org.lwjgl.system.StructBuffer<SDL_VirtualJoystickDesc,SDL_VirtualJoystickDesc.Buffer>
org.lwjgl.sdl.SDL_VirtualJoystickDesc.Buffer
- All Implemented Interfaces:
AutoCloseable
,Iterable<SDL_VirtualJoystickDesc>
,NativeResource
,Pointer
- Enclosing class:
SDL_VirtualJoystickDesc
public static class SDL_VirtualJoystickDesc.Buffer
extends StructBuffer<SDL_VirtualJoystickDesc,SDL_VirtualJoystickDesc.Buffer>
implements NativeResource
An array of
SDL_VirtualJoystickDesc
structs.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionBuffer
(long address, int cap) Buffer
(ByteBuffer container) Creates a newSDL_VirtualJoystickDesc.Buffer
instance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionint
axis_mask
(int value) Sets the specified value to theaxis_mask
field.int
button_mask
(int value) Sets the specified value to thebutton_mask
field.@Nullable SDL_VirtualJoystickDescCleanupCallback
Cleanup()
Cleanup
(@Nullable SDL_VirtualJoystickDescCleanupCallbackI value) Sets the specified value to theCleanup
field.name()
name
(ByteBuffer value) Sets the address of the specified encoded string to thename
field.short
naxes()
naxes
(short value) Sets the specified value to thenaxes
field.short
nballs()
nballs
(short value) Sets the specified value to thenballs
field.short
nbuttons()
nbuttons
(short value) Sets the specified value to thenbuttons
field.short
nhats()
nhats
(short value) Sets the specified value to thenhats
field.short
nsensors()
nsensors
(short value) Sets the specified value to thensensors
field.short
ntouchpads
(short value) Sets the specified value to thentouchpads
field.short
product_id
(short value) Sets the specified value to theproduct_id
field.@Nullable SDL_VirtualJoystickDescRumbleCallback
Rumble()
Rumble
(@Nullable SDL_VirtualJoystickDescRumbleCallbackI value) Sets the specified value to theRumble
field.RumbleTriggers
(@Nullable SDL_VirtualJoystickDescRumbleTriggersCallbackI value) Sets the specified value to theRumbleTriggers
field.SendEffect
(@Nullable SDL_VirtualJoystickDescSendEffectCallbackI value) Sets the specified value to theSendEffect
field.@Nullable SDL_VirtualJoystickSensorDesc.Buffer
sensors()
sensors
(@Nullable SDL_VirtualJoystickSensorDesc.Buffer value) Sets the address of the specifiedSDL_VirtualJoystickSensorDesc.Buffer
to thesensors
field.@Nullable SDL_VirtualJoystickDescSetLEDCallback
SetLED()
SetLED
(@Nullable SDL_VirtualJoystickDescSetLEDCallbackI value) Sets the specified value to theSetLED
field.SetPlayerIndex
(@Nullable SDL_VirtualJoystickDescSetPlayerIndexCallbackI value) Sets the specified value to theSetPlayerIndex
field.SetSensorsEnabled
(@Nullable SDL_VirtualJoystickDescSetSensorsEnabledCallbackI value) Sets the specified value to theSetSensorsEnabled
field.@Nullable SDL_VirtualJoystickTouchpadDesc.Buffer
touchpads
(@Nullable SDL_VirtualJoystickTouchpadDesc.Buffer value) Sets the address of the specifiedSDL_VirtualJoystickTouchpadDesc.Buffer
to thetouchpads
field.short
type()
type
(short value) Sets the specified value to thetype
field.@Nullable SDL_VirtualJoystickDescUpdateCallback
Update()
Update
(@Nullable SDL_VirtualJoystickDescUpdateCallbackI value) Sets the specified value to theUpdate
field.long
userdata()
userdata
(long value) Sets the specified value to theuserdata
field.short
vendor_id
(short value) Sets the specified value to thevendor_id
field.int
version()
version
(int value) Sets the specified value to theversion
field.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, stream
Methods inherited from class org.lwjgl.system.CustomBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, hasRemaining, limit, limit, mark, position, position, put, remaining, reset, rewind, slice, slice, toString
Methods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCode
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newSDL_VirtualJoystickDesc.Buffer
instance backed by the specified container.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
SDL_VirtualJoystickDesc.SIZEOF
, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Details
-
version
public int version()- Returns:
- the value of the
version
field.
-
type
public short type()- Returns:
- the value of the
type
field.
-
vendor_id
public short vendor_id()- Returns:
- the value of the
vendor_id
field.
-
product_id
public short product_id()- Returns:
- the value of the
product_id
field.
-
naxes
public short naxes()- Returns:
- the value of the
naxes
field.
-
nbuttons
public short nbuttons()- Returns:
- the value of the
nbuttons
field.
-
nballs
public short nballs()- Returns:
- the value of the
nballs
field.
-
nhats
public short nhats()- Returns:
- the value of the
nhats
field.
-
ntouchpads
public short ntouchpads()- Returns:
- the value of the
ntouchpads
field.
-
nsensors
public short nsensors()- Returns:
- the value of the
nsensors
field.
-
button_mask
public int button_mask()- Returns:
- the value of the
button_mask
field.
-
axis_mask
public int axis_mask()- Returns:
- the value of the
axis_mask
field.
-
name
- Returns:
- a
ByteBuffer
view of the null-terminated string pointed to by thename
field.
-
nameString
- Returns:
- the null-terminated string pointed to by the
name
field.
-
touchpads
- Returns:
- a
SDL_VirtualJoystickTouchpadDesc.Buffer
view of the struct array pointed to by thetouchpads
field.
-
sensors
- Returns:
- a
SDL_VirtualJoystickSensorDesc.Buffer
view of the struct array pointed to by thesensors
field.
-
userdata
public long userdata()- Returns:
- the value of the
userdata
field.
-
Update
- Returns:
- the value of the
Update
field.
-
SetPlayerIndex
- Returns:
- the value of the
SetPlayerIndex
field.
-
Rumble
- Returns:
- the value of the
Rumble
field.
-
RumbleTriggers
- Returns:
- the value of the
RumbleTriggers
field.
-
SetLED
- Returns:
- the value of the
SetLED
field.
-
SendEffect
- Returns:
- the value of the
SendEffect
field.
-
SetSensorsEnabled
- Returns:
- the value of the
SetSensorsEnabled
field.
-
Cleanup
- Returns:
- the value of the
Cleanup
field.
-
version
Sets the specified value to theversion
field. -
type
Sets the specified value to thetype
field. -
vendor_id
Sets the specified value to thevendor_id
field. -
product_id
Sets the specified value to theproduct_id
field. -
naxes
Sets the specified value to thenaxes
field. -
nbuttons
Sets the specified value to thenbuttons
field. -
nballs
Sets the specified value to thenballs
field. -
nhats
Sets the specified value to thenhats
field. -
ntouchpads
Sets the specified value to thentouchpads
field. -
nsensors
Sets the specified value to thensensors
field. -
button_mask
Sets the specified value to thebutton_mask
field. -
axis_mask
Sets the specified value to theaxis_mask
field. -
name
Sets the address of the specified encoded string to thename
field. -
touchpads
public SDL_VirtualJoystickDesc.Buffer touchpads(@Nullable SDL_VirtualJoystickTouchpadDesc.Buffer value) Sets the address of the specifiedSDL_VirtualJoystickTouchpadDesc.Buffer
to thetouchpads
field. -
sensors
Sets the address of the specifiedSDL_VirtualJoystickSensorDesc.Buffer
to thesensors
field. -
userdata
Sets the specified value to theuserdata
field. -
Update
public SDL_VirtualJoystickDesc.Buffer Update(@Nullable SDL_VirtualJoystickDescUpdateCallbackI value) Sets the specified value to theUpdate
field. -
SetPlayerIndex
public SDL_VirtualJoystickDesc.Buffer SetPlayerIndex(@Nullable SDL_VirtualJoystickDescSetPlayerIndexCallbackI value) Sets the specified value to theSetPlayerIndex
field. -
Rumble
public SDL_VirtualJoystickDesc.Buffer Rumble(@Nullable SDL_VirtualJoystickDescRumbleCallbackI value) Sets the specified value to theRumble
field. -
RumbleTriggers
public SDL_VirtualJoystickDesc.Buffer RumbleTriggers(@Nullable SDL_VirtualJoystickDescRumbleTriggersCallbackI value) Sets the specified value to theRumbleTriggers
field. -
SetLED
public SDL_VirtualJoystickDesc.Buffer SetLED(@Nullable SDL_VirtualJoystickDescSetLEDCallbackI value) Sets the specified value to theSetLED
field. -
SendEffect
public SDL_VirtualJoystickDesc.Buffer SendEffect(@Nullable SDL_VirtualJoystickDescSendEffectCallbackI value) Sets the specified value to theSendEffect
field. -
SetSensorsEnabled
public SDL_VirtualJoystickDesc.Buffer SetSensorsEnabled(@Nullable SDL_VirtualJoystickDescSetSensorsEnabledCallbackI value) Sets the specified value to theSetSensorsEnabled
field. -
Cleanup
public SDL_VirtualJoystickDesc.Buffer Cleanup(@Nullable SDL_VirtualJoystickDescCleanupCallbackI value) Sets the specified value to theCleanup
field.
-