Package org.lwjgl.sdl
Class SDL_HapticCondition.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<SDL_HapticCondition.Buffer>
org.lwjgl.system.StructBuffer<SDL_HapticCondition,SDL_HapticCondition.Buffer>
org.lwjgl.sdl.SDL_HapticCondition.Buffer
- All Implemented Interfaces:
AutoCloseable,Iterable<SDL_HapticCondition>,NativeResource,Pointer
- Enclosing class:
SDL_HapticCondition
public static class SDL_HapticCondition.Buffer
extends StructBuffer<SDL_HapticCondition,SDL_HapticCondition.Buffer>
implements NativeResource
An array of
SDL_HapticCondition 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_HapticCondition.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionshortbutton()button(short value) Sets the specified value to thebuttonfield.center()shortcenter(int index) center(int index, short value) Sets the specified value at the specified index of thecenterfield.center(ShortBuffer value) Copies the specifiedShortBufferto thecenterfield.deadband()shortdeadband(int index) deadband(int index, short value) Sets the specified value at the specified index of thedeadbandfield.deadband(ShortBuffer value) Copies the specifiedShortBufferto thedeadbandfield.shortdelay()delay(short value) Sets the specified value to thedelayfield.direction(Consumer<SDL_HapticDirection> consumer) Passes thedirectionfield to the specifiedConsumer.direction(SDL_HapticDirection value) Copies the specifiedSDL_HapticDirectionto thedirectionfield.shortinterval()interval(short value) Sets the specified value to theintervalfield.shortleft_coeff(int index) left_coeff(int index, short value) Sets the specified value at the specified index of theleft_coefffield.left_coeff(ShortBuffer value) Copies the specifiedShortBufferto theleft_coefffield.left_sat()shortleft_sat(int index) left_sat(int index, short value) Sets the specified value at the specified index of theleft_satfield.left_sat(ShortBuffer value) Copies the specifiedShortBufferto theleft_satfield.intlength()length(int value) Sets the specified value to thelengthfield.shortright_coeff(int index) right_coeff(int index, short value) Sets the specified value at the specified index of theright_coefffield.right_coeff(ShortBuffer value) Copies the specifiedShortBufferto theright_coefffield.shortright_sat(int index) right_sat(int index, short value) Sets the specified value at the specified index of theright_satfield.right_sat(ShortBuffer value) Copies the specifiedShortBufferto theright_satfield.shorttype()type(short value) Sets the specified value to thetypefield.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_HapticCondition.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_HapticCondition.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
-
type
public short type()- Returns:
- the value of the
typefield.
-
direction
- Returns:
- a
SDL_HapticDirectionview of thedirectionfield.
-
length
public int length()- Returns:
- the value of the
lengthfield.
-
delay
public short delay()- Returns:
- the value of the
delayfield.
-
button
public short button()- Returns:
- the value of the
buttonfield.
-
interval
public short interval()- Returns:
- the value of the
intervalfield.
-
right_sat
- Returns:
- a
ShortBufferview of theright_satfield.
-
right_sat
public short right_sat(int index) - Returns:
- the value at the specified index of the
right_satfield.
-
left_sat
- Returns:
- a
ShortBufferview of theleft_satfield.
-
left_sat
public short left_sat(int index) - Returns:
- the value at the specified index of the
left_satfield.
-
right_coeff
- Returns:
- a
ShortBufferview of theright_coefffield.
-
right_coeff
public short right_coeff(int index) - Returns:
- the value at the specified index of the
right_coefffield.
-
left_coeff
- Returns:
- a
ShortBufferview of theleft_coefffield.
-
left_coeff
public short left_coeff(int index) - Returns:
- the value at the specified index of the
left_coefffield.
-
deadband
- Returns:
- a
ShortBufferview of thedeadbandfield.
-
deadband
public short deadband(int index) - Returns:
- the value at the specified index of the
deadbandfield.
-
center
- Returns:
- a
ShortBufferview of thecenterfield.
-
center
public short center(int index) - Returns:
- the value at the specified index of the
centerfield.
-
type
Sets the specified value to thetypefield. -
direction
Copies the specifiedSDL_HapticDirectionto thedirectionfield. -
direction
Passes thedirectionfield to the specifiedConsumer. -
length
Sets the specified value to thelengthfield. -
delay
Sets the specified value to thedelayfield. -
button
Sets the specified value to thebuttonfield. -
interval
Sets the specified value to theintervalfield. -
right_sat
Copies the specifiedShortBufferto theright_satfield. -
right_sat
Sets the specified value at the specified index of theright_satfield. -
left_sat
Copies the specifiedShortBufferto theleft_satfield. -
left_sat
Sets the specified value at the specified index of theleft_satfield. -
right_coeff
Copies the specifiedShortBufferto theright_coefffield. -
right_coeff
Sets the specified value at the specified index of theright_coefffield. -
left_coeff
Copies the specifiedShortBufferto theleft_coefffield. -
left_coeff
Sets the specified value at the specified index of theleft_coefffield. -
deadband
Copies the specifiedShortBufferto thedeadbandfield. -
deadband
Sets the specified value at the specified index of thedeadbandfield. -
center
Copies the specifiedShortBufferto thecenterfield. -
center
Sets the specified value at the specified index of thecenterfield.
-