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 Pointer
Pointer.Default -
Field Summary
Fields inherited from interface 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 StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streamMethods inherited from class 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 Pointer.Default
equals, hashCodeMethods inherited from interface 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
- Returns:
- the value of the
versionfield.
-
type
- Returns:
- the value of the
typefield.
-
vendor_id
- Returns:
- the value of the
vendor_idfield.
-
product_id
- Returns:
- the value of the
product_idfield.
-
naxes
- Returns:
- the value of the
naxesfield.
-
nbuttons
- Returns:
- the value of the
nbuttonsfield.
-
nballs
- Returns:
- the value of the
nballsfield.
-
nhats
- Returns:
- the value of the
nhatsfield.
-
ntouchpads
- Returns:
- the value of the
ntouchpadsfield.
-
nsensors
- Returns:
- the value of the
nsensorsfield.
-
button_mask
- Returns:
- the value of the
button_maskfield.
-
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
@NativeType("SDL_VirtualJoystickTouchpadDesc const *") public @Nullable SDL_VirtualJoystickTouchpadDesc.Buffer touchpads()- Returns:
- a
SDL_VirtualJoystickTouchpadDesc.Bufferview of the struct array pointed to by thetouchpadsfield.
-
sensors
@NativeType("SDL_VirtualJoystickSensorDesc const *") public @Nullable SDL_VirtualJoystickSensorDesc.Buffer sensors()- Returns:
- a
SDL_VirtualJoystickSensorDesc.Bufferview of the struct array pointed to by thesensorsfield.
-
userdata
- Returns:
- the value of the
userdatafield.
-
Update
- Returns:
- the value of the
Updatefield.
-
SetPlayerIndex
@NativeType("void (*) (void *, int)") public @Nullable SDL_VirtualJoystickDescSetPlayerIndexCallback SetPlayerIndex()- Returns:
- the value of the
SetPlayerIndexfield.
-
Rumble
@NativeType("bool (*) (void *, Uint16, Uint16)") public @Nullable SDL_VirtualJoystickDescRumbleCallback Rumble()- Returns:
- the value of the
Rumblefield.
-
RumbleTriggers
@NativeType("bool (*) (void *, Uint16, Uint16)") public @Nullable SDL_VirtualJoystickDescRumbleTriggersCallback RumbleTriggers()- Returns:
- the value of the
RumbleTriggersfield.
-
SetLED
@NativeType("bool (*) (void *, Uint8, Uint8, Uint8)") public @Nullable SDL_VirtualJoystickDescSetLEDCallback SetLED()- Returns:
- the value of the
SetLEDfield.
-
SendEffect
@NativeType("bool (*) (void *, void const *, int)") public @Nullable SDL_VirtualJoystickDescSendEffectCallback SendEffect()- Returns:
- the value of the
SendEffectfield.
-
SetSensorsEnabled
@NativeType("bool (*) (void *, bool)") public @Nullable SDL_VirtualJoystickDescSetSensorsEnabledCallback 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(@NativeType("SDL_VirtualJoystickTouchpadDesc const *") @Nullable SDL_VirtualJoystickTouchpadDesc.Buffer value) Sets the address of the specifiedSDL_VirtualJoystickTouchpadDesc.Bufferto thetouchpadsfield. -
sensors
public SDL_VirtualJoystickDesc.Buffer sensors(@NativeType("SDL_VirtualJoystickSensorDesc const *") @Nullable SDL_VirtualJoystickSensorDesc.Buffer value) Sets the address of the specifiedSDL_VirtualJoystickSensorDesc.Bufferto thesensorsfield. -
userdata
Sets the specified value to theuserdatafield. -
Update
public SDL_VirtualJoystickDesc.Buffer Update(@NativeType("void (*) (void *)") @Nullable SDL_VirtualJoystickDescUpdateCallbackI value) Sets the specified value to theUpdatefield. -
SetPlayerIndex
public SDL_VirtualJoystickDesc.Buffer SetPlayerIndex(@NativeType("void (*) (void *, int)") @Nullable SDL_VirtualJoystickDescSetPlayerIndexCallbackI value) Sets the specified value to theSetPlayerIndexfield. -
Rumble
public SDL_VirtualJoystickDesc.Buffer Rumble(@NativeType("bool (*) (void *, Uint16, Uint16)") @Nullable SDL_VirtualJoystickDescRumbleCallbackI value) Sets the specified value to theRumblefield. -
RumbleTriggers
public SDL_VirtualJoystickDesc.Buffer RumbleTriggers(@NativeType("bool (*) (void *, Uint16, Uint16)") @Nullable SDL_VirtualJoystickDescRumbleTriggersCallbackI value) Sets the specified value to theRumbleTriggersfield. -
SetLED
public SDL_VirtualJoystickDesc.Buffer SetLED(@NativeType("bool (*) (void *, Uint8, Uint8, Uint8)") @Nullable SDL_VirtualJoystickDescSetLEDCallbackI value) Sets the specified value to theSetLEDfield. -
SendEffect
public SDL_VirtualJoystickDesc.Buffer SendEffect(@NativeType("bool (*) (void *, void const *, int)") @Nullable SDL_VirtualJoystickDescSendEffectCallbackI value) Sets the specified value to theSendEffectfield. -
SetSensorsEnabled
public SDL_VirtualJoystickDesc.Buffer SetSensorsEnabled(@NativeType("bool (*) (void *, bool)") @Nullable SDL_VirtualJoystickDescSetSensorsEnabledCallbackI value) Sets the specified value to theSetSensorsEnabledfield. -
Cleanup
public SDL_VirtualJoystickDesc.Buffer Cleanup(@NativeType("void (*) (void *)") @Nullable SDL_VirtualJoystickDescCleanupCallbackI value) Sets the specified value to theCleanupfield.
-