Package org.lwjgl.sdl
Class SDL_VirtualJoystickDesc
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class SDL_VirtualJoystickDesc
extends Struct<SDL_VirtualJoystickDesc>
implements NativeResource
struct SDL_VirtualJoystickDesc {
Uint32 version;
Uint16 type;
Uint16 padding;
Uint16 vendor_id;
Uint16 product_id;
Uint16 naxes;
Uint16 nbuttons;
Uint16 nballs;
Uint16 nhats;
Uint16 ntouchpads;
Uint16 nsensors;
Uint16 padding2[2];
Uint32 button_mask;
Uint32 axis_mask;
char const * name;
{@link SDL_VirtualJoystickTouchpadDesc SDL_VirtualJoystickTouchpadDesc} const * touchpads;
{@link SDL_VirtualJoystickSensorDesc SDL_VirtualJoystickSensorDesc} const * sensors;
void * userdata;
void (* Update) (void * userdata);
void (* SetPlayerIndex) (void * userdata, int player_index);
bool (* Rumble) (void * userdata, Uint16 low_frequency_rumble, Uint16 high_frequency_rumble);
bool (* RumbleTriggers) (void * userdata, Uint16 left_rumble, Uint16 right_rumble);
bool (* SetLED) (void * userdata, Uint8 red, Uint8 green, Uint8 blue);
bool (* SendEffect) (void * userdata, void const * data, int size);
bool (* SetSensorsEnabled) (void * userdata, bool enabled);
void (* Cleanup) (void * userdata);
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionSDL_VirtualJoystickDesc
(ByteBuffer container) Creates aSDL_VirtualJoystickDesc
instance at the current position of the specifiedByteBuffer
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.static SDL_VirtualJoystickDesc
calloc()
Returns a newSDL_VirtualJoystickDesc
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newSDL_VirtualJoystickDesc.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newSDL_VirtualJoystickDesc.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static SDL_VirtualJoystickDesc
calloc
(MemoryStack stack) Returns a newSDL_VirtualJoystickDesc
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.@Nullable SDL_VirtualJoystickDescCleanupCallback
Cleanup()
Cleanup
(@Nullable SDL_VirtualJoystickDescCleanupCallbackI value) Sets the specified value to theCleanup
field.static SDL_VirtualJoystickDesc
create()
Returns a newSDL_VirtualJoystickDesc
instance allocated withBufferUtils
.create
(int capacity) Returns a newSDL_VirtualJoystickDesc.Buffer
instance allocated withBufferUtils
.static SDL_VirtualJoystickDesc
create
(long address) Returns a newSDL_VirtualJoystickDesc
instance for the specified memory address.create
(long address, int capacity) Create aSDL_VirtualJoystickDesc.Buffer
instance at the specified memory.static @Nullable SDL_VirtualJoystickDesc
createSafe
(long address) static @Nullable SDL_VirtualJoystickDesc.Buffer
createSafe
(long address, int capacity) static SDL_VirtualJoystickDesc
malloc()
Returns a newSDL_VirtualJoystickDesc
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newSDL_VirtualJoystickDesc.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newSDL_VirtualJoystickDesc.Buffer
instance allocated on the specifiedMemoryStack
.static SDL_VirtualJoystickDesc
malloc
(MemoryStack stack) Returns a newSDL_VirtualJoystickDesc
instance allocated on the specifiedMemoryStack
.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.static int
naxis_mask
(long struct) Unsafe version ofaxis_mask()
.static void
naxis_mask
(long struct, int value) Unsafe version ofaxis_mask
.short
nballs()
nballs
(short value) Sets the specified value to thenballs
field.static int
nbutton_mask
(long struct) Unsafe version ofbutton_mask()
.static void
nbutton_mask
(long struct, int value) Unsafe version ofbutton_mask
.short
nbuttons()
nbuttons
(short value) Sets the specified value to thenbuttons
field.static @Nullable SDL_VirtualJoystickDescCleanupCallback
nCleanup
(long struct) Unsafe version ofCleanup()
.static void
nCleanup
(long struct, @Nullable SDL_VirtualJoystickDescCleanupCallbackI value) Unsafe version ofCleanup
.short
nhats()
nhats
(short value) Sets the specified value to thenhats
field.static ByteBuffer
nname
(long struct) Unsafe version ofname()
.static void
nname
(long struct, ByteBuffer value) Unsafe version ofname
.static String
nnameString
(long struct) Unsafe version ofnameString()
.static short
nnaxes
(long struct) Unsafe version ofnaxes()
.static void
nnaxes
(long struct, short value) Unsafe version ofnaxes
.static short
nnballs
(long struct) Unsafe version ofnballs()
.static void
nnballs
(long struct, short value) Unsafe version ofnballs
.static short
nnbuttons
(long struct) Unsafe version ofnbuttons()
.static void
nnbuttons
(long struct, short value) Unsafe version ofnbuttons
.static short
nnhats
(long struct) Unsafe version ofnhats()
.static void
nnhats
(long struct, short value) Unsafe version ofnhats
.static short
nnsensors
(long struct) Unsafe version ofnsensors()
.static void
nnsensors
(long struct, short value) Sets the specified value to thensensors
field of the specifiedstruct
.static short
nntouchpads
(long struct) Unsafe version ofntouchpads()
.static void
nntouchpads
(long struct, short value) Sets the specified value to thentouchpads
field of the specifiedstruct
.static short
npadding
(long struct) static void
npadding
(long struct, short value) static ShortBuffer
npadding2
(long struct) static short
npadding2
(long struct, int index) static void
npadding2
(long struct, int index, short value) static void
npadding2
(long struct, ShortBuffer value) static short
nproduct_id
(long struct) Unsafe version ofproduct_id()
.static void
nproduct_id
(long struct, short value) Unsafe version ofproduct_id
.static @Nullable SDL_VirtualJoystickDescRumbleCallback
nRumble
(long struct) Unsafe version ofRumble()
.static void
nRumble
(long struct, @Nullable SDL_VirtualJoystickDescRumbleCallbackI value) Unsafe version ofRumble
.static @Nullable SDL_VirtualJoystickDescRumbleTriggersCallback
nRumbleTriggers
(long struct) Unsafe version ofRumbleTriggers()
.static void
nRumbleTriggers
(long struct, @Nullable SDL_VirtualJoystickDescRumbleTriggersCallbackI value) Unsafe version ofRumbleTriggers
.static @Nullable SDL_VirtualJoystickDescSendEffectCallback
nSendEffect
(long struct) Unsafe version ofSendEffect()
.static void
nSendEffect
(long struct, @Nullable SDL_VirtualJoystickDescSendEffectCallbackI value) Unsafe version ofSendEffect
.short
nsensors()
static @Nullable SDL_VirtualJoystickSensorDesc.Buffer
nsensors
(long struct) Unsafe version ofsensors()
.static void
nsensors
(long struct, @Nullable SDL_VirtualJoystickSensorDesc.Buffer value) Unsafe version ofsensors
.nsensors
(short value) Sets the specified value to thensensors
field.static @Nullable SDL_VirtualJoystickDescSetLEDCallback
nSetLED
(long struct) Unsafe version ofSetLED()
.static void
nSetLED
(long struct, @Nullable SDL_VirtualJoystickDescSetLEDCallbackI value) Unsafe version ofSetLED
.static @Nullable SDL_VirtualJoystickDescSetPlayerIndexCallback
nSetPlayerIndex
(long struct) Unsafe version ofSetPlayerIndex()
.static void
nSetPlayerIndex
(long struct, @Nullable SDL_VirtualJoystickDescSetPlayerIndexCallbackI value) Unsafe version ofSetPlayerIndex
.static @Nullable SDL_VirtualJoystickDescSetSensorsEnabledCallback
nSetSensorsEnabled
(long struct) Unsafe version ofSetSensorsEnabled()
.static void
nSetSensorsEnabled
(long struct, @Nullable SDL_VirtualJoystickDescSetSensorsEnabledCallbackI value) Unsafe version ofSetSensorsEnabled
.short
static @Nullable SDL_VirtualJoystickTouchpadDesc.Buffer
ntouchpads
(long struct) Unsafe version oftouchpads()
.static void
ntouchpads
(long struct, @Nullable SDL_VirtualJoystickTouchpadDesc.Buffer value) Unsafe version oftouchpads
.ntouchpads
(short value) Sets the specified value to thentouchpads
field.static short
ntype
(long struct) Unsafe version oftype()
.static void
ntype
(long struct, short value) Unsafe version oftype
.static @Nullable SDL_VirtualJoystickDescUpdateCallback
nUpdate
(long struct) Unsafe version ofUpdate()
.static void
nUpdate
(long struct, @Nullable SDL_VirtualJoystickDescUpdateCallbackI value) Unsafe version ofUpdate
.static long
nuserdata
(long struct) Unsafe version ofuserdata()
.static void
nuserdata
(long struct, long value) Unsafe version ofuserdata
.static short
nvendor_id
(long struct) Unsafe version ofvendor_id()
.static void
nvendor_id
(long struct, short value) Unsafe version ofvendor_id
.static int
nversion
(long struct) Unsafe version ofversion()
.static void
nversion
(long struct, int value) Unsafe version ofversion
.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.set
(int version, short type, short vendor_id, short product_id, short naxes, short nbuttons, short nballs, short nhats, short ntouchpads, short nsensors, int button_mask, int axis_mask, ByteBuffer name, @Nullable SDL_VirtualJoystickTouchpadDesc.Buffer touchpads, @Nullable SDL_VirtualJoystickSensorDesc.Buffer sensors, long userdata, @Nullable SDL_VirtualJoystickDescUpdateCallbackI Update, @Nullable SDL_VirtualJoystickDescSetPlayerIndexCallbackI SetPlayerIndex, @Nullable SDL_VirtualJoystickDescRumbleCallbackI Rumble, @Nullable SDL_VirtualJoystickDescRumbleTriggersCallbackI RumbleTriggers, @Nullable SDL_VirtualJoystickDescSetLEDCallbackI SetLED, @Nullable SDL_VirtualJoystickDescSendEffectCallbackI SendEffect, @Nullable SDL_VirtualJoystickDescSetSensorsEnabledCallbackI SetSensorsEnabled, @Nullable SDL_VirtualJoystickDescCleanupCallbackI Cleanup) Initializes this struct with the specified values.Copies the specified struct data to this struct.@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.int
sizeof()
Returnssizeof(struct)
.@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.static void
validate
(long struct) Validates pointer members that should not beNULL
.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.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
VERSION
public static final int VERSIONThe struct member offsets. -
TYPE
public static final int TYPEThe struct member offsets. -
PADDING
public static final int PADDINGThe struct member offsets. -
VENDOR_ID
public static final int VENDOR_IDThe struct member offsets. -
PRODUCT_ID
public static final int PRODUCT_IDThe struct member offsets. -
NAXES
public static final int NAXESThe struct member offsets. -
NBUTTONS
public static final int NBUTTONSThe struct member offsets. -
NBALLS
public static final int NBALLSThe struct member offsets. -
NHATS
public static final int NHATSThe struct member offsets. -
NTOUCHPADS
public static final int NTOUCHPADSThe struct member offsets. -
NSENSORS
public static final int NSENSORSThe struct member offsets. -
PADDING2
public static final int PADDING2The struct member offsets. -
BUTTON_MASK
public static final int BUTTON_MASKThe struct member offsets. -
AXIS_MASK
public static final int AXIS_MASKThe struct member offsets. -
NAME
public static final int NAMEThe struct member offsets. -
TOUCHPADS
public static final int TOUCHPADSThe struct member offsets. -
SENSORS
public static final int SENSORSThe struct member offsets. -
USERDATA
public static final int USERDATAThe struct member offsets. -
UPDATE
public static final int UPDATEThe struct member offsets. -
SETPLAYERINDEX
public static final int SETPLAYERINDEXThe struct member offsets. -
RUMBLE
public static final int RUMBLEThe struct member offsets. -
RUMBLETRIGGERS
public static final int RUMBLETRIGGERSThe struct member offsets. -
SETLED
public static final int SETLEDThe struct member offsets. -
SENDEFFECT
public static final int SENDEFFECTThe struct member offsets. -
SETSENSORSENABLED
public static final int SETSENSORSENABLEDThe struct member offsets. -
CLEANUP
public static final int CLEANUPThe struct member offsets.
-
-
Constructor Details
-
SDL_VirtualJoystickDesc
Creates aSDL_VirtualJoystickDesc
instance at the current position of the specifiedByteBuffer
container. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<SDL_VirtualJoystickDesc>
-
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
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
Sets the specified value to theUpdate
field. -
SetPlayerIndex
public SDL_VirtualJoystickDesc SetPlayerIndex(@Nullable SDL_VirtualJoystickDescSetPlayerIndexCallbackI value) Sets the specified value to theSetPlayerIndex
field. -
Rumble
Sets the specified value to theRumble
field. -
RumbleTriggers
public SDL_VirtualJoystickDesc RumbleTriggers(@Nullable SDL_VirtualJoystickDescRumbleTriggersCallbackI value) Sets the specified value to theRumbleTriggers
field. -
SetLED
Sets the specified value to theSetLED
field. -
SendEffect
public SDL_VirtualJoystickDesc SendEffect(@Nullable SDL_VirtualJoystickDescSendEffectCallbackI value) Sets the specified value to theSendEffect
field. -
SetSensorsEnabled
public SDL_VirtualJoystickDesc SetSensorsEnabled(@Nullable SDL_VirtualJoystickDescSetSensorsEnabledCallbackI value) Sets the specified value to theSetSensorsEnabled
field. -
Cleanup
Sets the specified value to theCleanup
field. -
set
public SDL_VirtualJoystickDesc set(int version, short type, short vendor_id, short product_id, short naxes, short nbuttons, short nballs, short nhats, short ntouchpads, short nsensors, int button_mask, int axis_mask, ByteBuffer name, @Nullable SDL_VirtualJoystickTouchpadDesc.Buffer touchpads, @Nullable SDL_VirtualJoystickSensorDesc.Buffer sensors, long userdata, @Nullable SDL_VirtualJoystickDescUpdateCallbackI Update, @Nullable SDL_VirtualJoystickDescSetPlayerIndexCallbackI SetPlayerIndex, @Nullable SDL_VirtualJoystickDescRumbleCallbackI Rumble, @Nullable SDL_VirtualJoystickDescRumbleTriggersCallbackI RumbleTriggers, @Nullable SDL_VirtualJoystickDescSetLEDCallbackI SetLED, @Nullable SDL_VirtualJoystickDescSendEffectCallbackI SendEffect, @Nullable SDL_VirtualJoystickDescSetSensorsEnabledCallbackI SetSensorsEnabled, @Nullable SDL_VirtualJoystickDescCleanupCallbackI Cleanup) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newSDL_VirtualJoystickDesc
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newSDL_VirtualJoystickDesc
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newSDL_VirtualJoystickDesc
instance allocated withBufferUtils
. -
create
Returns a newSDL_VirtualJoystickDesc
instance for the specified memory address. -
createSafe
-
malloc
Returns a newSDL_VirtualJoystickDesc.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newSDL_VirtualJoystickDesc.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newSDL_VirtualJoystickDesc.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aSDL_VirtualJoystickDesc.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newSDL_VirtualJoystickDesc
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newSDL_VirtualJoystickDesc
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newSDL_VirtualJoystickDesc.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newSDL_VirtualJoystickDesc.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nversion
public static int nversion(long struct) Unsafe version ofversion()
. -
ntype
public static short ntype(long struct) Unsafe version oftype()
. -
npadding
public static short npadding(long struct) -
nvendor_id
public static short nvendor_id(long struct) Unsafe version ofvendor_id()
. -
nproduct_id
public static short nproduct_id(long struct) Unsafe version ofproduct_id()
. -
nnaxes
public static short nnaxes(long struct) Unsafe version ofnaxes()
. -
nnbuttons
public static short nnbuttons(long struct) Unsafe version ofnbuttons()
. -
nnballs
public static short nnballs(long struct) Unsafe version ofnballs()
. -
nnhats
public static short nnhats(long struct) Unsafe version ofnhats()
. -
nntouchpads
public static short nntouchpads(long struct) Unsafe version ofntouchpads()
. -
nnsensors
public static short nnsensors(long struct) Unsafe version ofnsensors()
. -
npadding2
-
npadding2
public static short npadding2(long struct, int index) -
nbutton_mask
public static int nbutton_mask(long struct) Unsafe version ofbutton_mask()
. -
naxis_mask
public static int naxis_mask(long struct) Unsafe version ofaxis_mask()
. -
nname
Unsafe version ofname()
. -
nnameString
Unsafe version ofnameString()
. -
ntouchpads
Unsafe version oftouchpads()
. -
nsensors
Unsafe version ofsensors()
. -
nuserdata
public static long nuserdata(long struct) Unsafe version ofuserdata()
. -
nUpdate
Unsafe version ofUpdate()
. -
nSetPlayerIndex
Unsafe version ofSetPlayerIndex()
. -
nRumble
Unsafe version ofRumble()
. -
nRumbleTriggers
Unsafe version ofRumbleTriggers()
. -
nSetLED
Unsafe version ofSetLED()
. -
nSendEffect
Unsafe version ofSendEffect()
. -
nSetSensorsEnabled
public static @Nullable SDL_VirtualJoystickDescSetSensorsEnabledCallback nSetSensorsEnabled(long struct) Unsafe version ofSetSensorsEnabled()
. -
nCleanup
Unsafe version ofCleanup()
. -
nversion
public static void nversion(long struct, int value) Unsafe version ofversion
. -
ntype
public static void ntype(long struct, short value) Unsafe version oftype
. -
npadding
public static void npadding(long struct, short value) -
nvendor_id
public static void nvendor_id(long struct, short value) Unsafe version ofvendor_id
. -
nproduct_id
public static void nproduct_id(long struct, short value) Unsafe version ofproduct_id
. -
nnaxes
public static void nnaxes(long struct, short value) Unsafe version ofnaxes
. -
nnbuttons
public static void nnbuttons(long struct, short value) Unsafe version ofnbuttons
. -
nnballs
public static void nnballs(long struct, short value) Unsafe version ofnballs
. -
nnhats
public static void nnhats(long struct, short value) Unsafe version ofnhats
. -
nntouchpads
public static void nntouchpads(long struct, short value) Sets the specified value to thentouchpads
field of the specifiedstruct
. -
nnsensors
public static void nnsensors(long struct, short value) Sets the specified value to thensensors
field of the specifiedstruct
. -
npadding2
-
npadding2
public static void npadding2(long struct, int index, short value) -
nbutton_mask
public static void nbutton_mask(long struct, int value) Unsafe version ofbutton_mask
. -
naxis_mask
public static void naxis_mask(long struct, int value) Unsafe version ofaxis_mask
. -
nname
Unsafe version ofname
. -
ntouchpads
Unsafe version oftouchpads
. -
nsensors
Unsafe version ofsensors
. -
nuserdata
public static void nuserdata(long struct, long value) Unsafe version ofuserdata
. -
nUpdate
Unsafe version ofUpdate
. -
nSetPlayerIndex
public static void nSetPlayerIndex(long struct, @Nullable SDL_VirtualJoystickDescSetPlayerIndexCallbackI value) Unsafe version ofSetPlayerIndex
. -
nRumble
Unsafe version ofRumble
. -
nRumbleTriggers
public static void nRumbleTriggers(long struct, @Nullable SDL_VirtualJoystickDescRumbleTriggersCallbackI value) Unsafe version ofRumbleTriggers
. -
nSetLED
Unsafe version ofSetLED
. -
nSendEffect
public static void nSendEffect(long struct, @Nullable SDL_VirtualJoystickDescSendEffectCallbackI value) Unsafe version ofSendEffect
. -
nSetSensorsEnabled
public static void nSetSensorsEnabled(long struct, @Nullable SDL_VirtualJoystickDescSetSensorsEnabledCallbackI value) Unsafe version ofSetSensorsEnabled
. -
nCleanup
Unsafe version ofCleanup
. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-