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.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionintaxis_mask(int value) Sets the specified value to theaxis_maskfield.intbutton_mask(int value) Sets the specified value to thebutton_maskfield.@Nullable SDL_VirtualJoystickDescCleanupCallbackCleanup()Cleanup(@Nullable SDL_VirtualJoystickDescCleanupCallbackI value) Sets the specified value to theCleanupfield.name()name(ByteBuffer value) Sets the address of the specified encoded string to thenamefield.shortnaxes()naxes(short value) Sets the specified value to thenaxesfield.shortnballs()nballs(short value) Sets the specified value to thenballsfield.shortnbuttons()nbuttons(short value) Sets the specified value to thenbuttonsfield.shortnhats()nhats(short value) Sets the specified value to thenhatsfield.shortnsensors()nsensors(short value) Sets the specified value to thensensorsfield.shortntouchpads(short value) Sets the specified value to thentouchpadsfield.shortproduct_id(short value) Sets the specified value to theproduct_idfield.@Nullable SDL_VirtualJoystickDescRumbleCallbackRumble()Rumble(@Nullable SDL_VirtualJoystickDescRumbleCallbackI value) Sets the specified value to theRumblefield.RumbleTriggers(@Nullable SDL_VirtualJoystickDescRumbleTriggersCallbackI value) Sets the specified value to theRumbleTriggersfield.SendEffect(@Nullable SDL_VirtualJoystickDescSendEffectCallbackI value) Sets the specified value to theSendEffectfield.@Nullable SDL_VirtualJoystickSensorDesc.Buffersensors()sensors(@Nullable SDL_VirtualJoystickSensorDesc.Buffer value) Sets the address of the specifiedSDL_VirtualJoystickSensorDesc.Bufferto thesensorsfield.@Nullable SDL_VirtualJoystickDescSetLEDCallbackSetLED()SetLED(@Nullable SDL_VirtualJoystickDescSetLEDCallbackI value) Sets the specified value to theSetLEDfield.SetPlayerIndex(@Nullable SDL_VirtualJoystickDescSetPlayerIndexCallbackI value) Sets the specified value to theSetPlayerIndexfield.SetSensorsEnabled(@Nullable SDL_VirtualJoystickDescSetSensorsEnabledCallbackI value) Sets the specified value to theSetSensorsEnabledfield.@Nullable SDL_VirtualJoystickTouchpadDesc.Buffertouchpads(@Nullable SDL_VirtualJoystickTouchpadDesc.Buffer value) Sets the address of the specifiedSDL_VirtualJoystickTouchpadDesc.Bufferto thetouchpadsfield.shorttype()type(short value) Sets the specified value to thetypefield.@Nullable SDL_VirtualJoystickDescUpdateCallbackUpdate()Update(@Nullable SDL_VirtualJoystickDescUpdateCallbackI value) Sets the specified value to theUpdatefield.longuserdata()userdata(long value) Sets the specified value to theuserdatafield.shortvendor_id(short value) Sets the specified value to thevendor_idfield.intversion()version(int value) Sets the specified value to theversionfield.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streamMethods 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, toStringMethods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCodeMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newSDL_VirtualJoystickDesc.Bufferinstance 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
versionfield.
-
type
public short type()- Returns:
- the value of the
typefield.
-
vendor_id
public short vendor_id()- Returns:
- the value of the
vendor_idfield.
-
product_id
public short product_id()- Returns:
- the value of the
product_idfield.
-
naxes
public short naxes()- Returns:
- the value of the
naxesfield.
-
nbuttons
public short nbuttons()- Returns:
- the value of the
nbuttonsfield.
-
nballs
public short nballs()- Returns:
- the value of the
nballsfield.
-
nhats
public short nhats()- Returns:
- the value of the
nhatsfield.
-
ntouchpads
public short ntouchpads()- Returns:
- the value of the
ntouchpadsfield.
-
nsensors
public short nsensors()- Returns:
- the value of the
nsensorsfield.
-
button_mask
public int button_mask()- Returns:
- the value of the
button_maskfield.
-
axis_mask
public int axis_mask()- Returns:
- the value of the
axis_maskfield.
-
name
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by thenamefield.
-
nameString
- Returns:
- the null-terminated string pointed to by the
namefield.
-
touchpads
- Returns:
- a
SDL_VirtualJoystickTouchpadDesc.Bufferview of the struct array pointed to by thetouchpadsfield.
-
sensors
- Returns:
- a
SDL_VirtualJoystickSensorDesc.Bufferview of the struct array pointed to by thesensorsfield.
-
userdata
public long userdata()- Returns:
- the value of the
userdatafield.
-
Update
- Returns:
- the value of the
Updatefield.
-
SetPlayerIndex
- Returns:
- the value of the
SetPlayerIndexfield.
-
Rumble
- Returns:
- the value of the
Rumblefield.
-
RumbleTriggers
- Returns:
- the value of the
RumbleTriggersfield.
-
SetLED
- Returns:
- the value of the
SetLEDfield.
-
SendEffect
- Returns:
- the value of the
SendEffectfield.
-
SetSensorsEnabled
- Returns:
- the value of the
SetSensorsEnabledfield.
-
Cleanup
- Returns:
- the value of the
Cleanupfield.
-
version
Sets the specified value to theversionfield. -
type
Sets the specified value to thetypefield. -
vendor_id
Sets the specified value to thevendor_idfield. -
product_id
Sets the specified value to theproduct_idfield. -
naxes
Sets the specified value to thenaxesfield. -
nbuttons
Sets the specified value to thenbuttonsfield. -
nballs
Sets the specified value to thenballsfield. -
nhats
Sets the specified value to thenhatsfield. -
ntouchpads
Sets the specified value to thentouchpadsfield. -
nsensors
Sets the specified value to thensensorsfield. -
button_mask
Sets the specified value to thebutton_maskfield. -
axis_mask
Sets the specified value to theaxis_maskfield. -
name
Sets the address of the specified encoded string to thenamefield. -
touchpads
public SDL_VirtualJoystickDesc.Buffer touchpads(@Nullable SDL_VirtualJoystickTouchpadDesc.Buffer value) Sets the address of the specifiedSDL_VirtualJoystickTouchpadDesc.Bufferto thetouchpadsfield. -
sensors
Sets the address of the specifiedSDL_VirtualJoystickSensorDesc.Bufferto thesensorsfield. -
userdata
Sets the specified value to theuserdatafield. -
Update
public SDL_VirtualJoystickDesc.Buffer Update(@Nullable SDL_VirtualJoystickDescUpdateCallbackI value) Sets the specified value to theUpdatefield. -
SetPlayerIndex
public SDL_VirtualJoystickDesc.Buffer SetPlayerIndex(@Nullable SDL_VirtualJoystickDescSetPlayerIndexCallbackI value) Sets the specified value to theSetPlayerIndexfield. -
Rumble
public SDL_VirtualJoystickDesc.Buffer Rumble(@Nullable SDL_VirtualJoystickDescRumbleCallbackI value) Sets the specified value to theRumblefield. -
RumbleTriggers
public SDL_VirtualJoystickDesc.Buffer RumbleTriggers(@Nullable SDL_VirtualJoystickDescRumbleTriggersCallbackI value) Sets the specified value to theRumbleTriggersfield. -
SetLED
public SDL_VirtualJoystickDesc.Buffer SetLED(@Nullable SDL_VirtualJoystickDescSetLEDCallbackI value) Sets the specified value to theSetLEDfield. -
SendEffect
public SDL_VirtualJoystickDesc.Buffer SendEffect(@Nullable SDL_VirtualJoystickDescSendEffectCallbackI value) Sets the specified value to theSendEffectfield. -
SetSensorsEnabled
public SDL_VirtualJoystickDesc.Buffer SetSensorsEnabled(@Nullable SDL_VirtualJoystickDescSetSensorsEnabledCallbackI value) Sets the specified value to theSetSensorsEnabledfield. -
Cleanup
public SDL_VirtualJoystickDesc.Buffer Cleanup(@Nullable SDL_VirtualJoystickDescCleanupCallbackI value) Sets the specified value to theCleanupfield.
-