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;
SDL_VirtualJoystickTouchpadDesc const * touchpads;
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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe 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_VirtualJoystickDescinstance at the current position of the specifiedByteBuffercontainer. -
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.static SDL_VirtualJoystickDesccalloc()Returns a newSDL_VirtualJoystickDescinstance allocated withmemCalloc.calloc(int capacity) Returns a newSDL_VirtualJoystickDesc.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newSDL_VirtualJoystickDesc.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SDL_VirtualJoystickDesccalloc(MemoryStack stack) Returns a newSDL_VirtualJoystickDescinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.@Nullable SDL_VirtualJoystickDescCleanupCallbackCleanup()Cleanup(@Nullable SDL_VirtualJoystickDescCleanupCallbackI value) Sets the specified value to theCleanupfield.static SDL_VirtualJoystickDesccreate()Returns a newSDL_VirtualJoystickDescinstance allocated withBufferUtils.create(int capacity) Returns a newSDL_VirtualJoystickDesc.Bufferinstance allocated withBufferUtils.static SDL_VirtualJoystickDesccreate(long address) Returns a newSDL_VirtualJoystickDescinstance for the specified memory address.create(long address, int capacity) Create aSDL_VirtualJoystickDesc.Bufferinstance at the specified memory.static @Nullable SDL_VirtualJoystickDesccreateSafe(long address) static @Nullable SDL_VirtualJoystickDesc.BuffercreateSafe(long address, int capacity) static SDL_VirtualJoystickDescmalloc()Returns a newSDL_VirtualJoystickDescinstance allocated withmemAlloc.malloc(int capacity) Returns a newSDL_VirtualJoystickDesc.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newSDL_VirtualJoystickDesc.Bufferinstance allocated on the specifiedMemoryStack.static SDL_VirtualJoystickDescmalloc(MemoryStack stack) Returns a newSDL_VirtualJoystickDescinstance allocated on the specifiedMemoryStack.name()name(ByteBuffer value) Sets the address of the specified encoded string to thenamefield.shortnaxes()naxes(short value) Sets the specified value to thenaxesfield.static intnaxis_mask(long struct) Unsafe version ofaxis_mask().static voidnaxis_mask(long struct, int value) Unsafe version ofaxis_mask.shortnballs()nballs(short value) Sets the specified value to thenballsfield.static intnbutton_mask(long struct) Unsafe version ofbutton_mask().static voidnbutton_mask(long struct, int value) Unsafe version ofbutton_mask.shortnbuttons()nbuttons(short value) Sets the specified value to thenbuttonsfield.static @Nullable SDL_VirtualJoystickDescCleanupCallbacknCleanup(long struct) Unsafe version ofCleanup().static voidnCleanup(long struct, @Nullable SDL_VirtualJoystickDescCleanupCallbackI value) Unsafe version ofCleanup.shortnhats()nhats(short value) Sets the specified value to thenhatsfield.static ByteBuffernname(long struct) Unsafe version ofname().static voidnname(long struct, ByteBuffer value) Unsafe version ofname.static StringnnameString(long struct) Unsafe version ofnameString().static shortnnaxes(long struct) Unsafe version ofnaxes().static voidnnaxes(long struct, short value) Unsafe version ofnaxes.static shortnnballs(long struct) Unsafe version ofnballs().static voidnnballs(long struct, short value) Unsafe version ofnballs.static shortnnbuttons(long struct) Unsafe version ofnbuttons().static voidnnbuttons(long struct, short value) Unsafe version ofnbuttons.static shortnnhats(long struct) Unsafe version ofnhats().static voidnnhats(long struct, short value) Unsafe version ofnhats.static shortnnsensors(long struct) Unsafe version ofnsensors().static voidnnsensors(long struct, short value) Sets the specified value to thensensorsfield of the specifiedstruct.static shortnntouchpads(long struct) Unsafe version ofntouchpads().static voidnntouchpads(long struct, short value) Sets the specified value to thentouchpadsfield of the specifiedstruct.static shortnpadding(long struct) static voidnpadding(long struct, short value) static ShortBuffernpadding2(long struct) static shortnpadding2(long struct, int index) static voidnpadding2(long struct, int index, short value) static voidnpadding2(long struct, ShortBuffer value) static shortnproduct_id(long struct) Unsafe version ofproduct_id().static voidnproduct_id(long struct, short value) Unsafe version ofproduct_id.static @Nullable SDL_VirtualJoystickDescRumbleCallbacknRumble(long struct) Unsafe version ofRumble().static voidnRumble(long struct, @Nullable SDL_VirtualJoystickDescRumbleCallbackI value) Unsafe version ofRumble.static @Nullable SDL_VirtualJoystickDescRumbleTriggersCallbacknRumbleTriggers(long struct) Unsafe version ofRumbleTriggers().static voidnRumbleTriggers(long struct, @Nullable SDL_VirtualJoystickDescRumbleTriggersCallbackI value) Unsafe version ofRumbleTriggers.static @Nullable SDL_VirtualJoystickDescSendEffectCallbacknSendEffect(long struct) Unsafe version ofSendEffect().static voidnSendEffect(long struct, @Nullable SDL_VirtualJoystickDescSendEffectCallbackI value) Unsafe version ofSendEffect.shortnsensors()static @Nullable SDL_VirtualJoystickSensorDesc.Buffernsensors(long struct) Unsafe version ofsensors().static voidnsensors(long struct, @Nullable SDL_VirtualJoystickSensorDesc.Buffer value) Unsafe version ofsensors.nsensors(short value) Sets the specified value to thensensorsfield.static @Nullable SDL_VirtualJoystickDescSetLEDCallbacknSetLED(long struct) Unsafe version ofSetLED().static voidnSetLED(long struct, @Nullable SDL_VirtualJoystickDescSetLEDCallbackI value) Unsafe version ofSetLED.static @Nullable SDL_VirtualJoystickDescSetPlayerIndexCallbacknSetPlayerIndex(long struct) Unsafe version ofSetPlayerIndex().static voidnSetPlayerIndex(long struct, @Nullable SDL_VirtualJoystickDescSetPlayerIndexCallbackI value) Unsafe version ofSetPlayerIndex.static @Nullable SDL_VirtualJoystickDescSetSensorsEnabledCallbacknSetSensorsEnabled(long struct) Unsafe version ofSetSensorsEnabled().static voidnSetSensorsEnabled(long struct, @Nullable SDL_VirtualJoystickDescSetSensorsEnabledCallbackI value) Unsafe version ofSetSensorsEnabled.shortstatic @Nullable SDL_VirtualJoystickTouchpadDesc.Bufferntouchpads(long struct) Unsafe version oftouchpads().static voidntouchpads(long struct, @Nullable SDL_VirtualJoystickTouchpadDesc.Buffer value) Unsafe version oftouchpads.ntouchpads(short value) Sets the specified value to thentouchpadsfield.static shortntype(long struct) Unsafe version oftype().static voidntype(long struct, short value) Unsafe version oftype.static @Nullable SDL_VirtualJoystickDescUpdateCallbacknUpdate(long struct) Unsafe version ofUpdate().static voidnUpdate(long struct, @Nullable SDL_VirtualJoystickDescUpdateCallbackI value) Unsafe version ofUpdate.static longnuserdata(long struct) Unsafe version ofuserdata().static voidnuserdata(long struct, long value) Unsafe version ofuserdata.static shortnvendor_id(long struct) Unsafe version ofvendor_id().static voidnvendor_id(long struct, short value) Unsafe version ofvendor_id.static intnversion(long struct) Unsafe version ofversion().static voidnversion(long struct, int value) Unsafe version ofversion.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.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_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.intsizeof()Returnssizeof(struct).@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.static voidvalidate(long struct) Validates pointer members that should not beNULL.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.Pointer.Default
address, equals, hashCode, toStringMethods 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_VirtualJoystickDescinstance at the current position of the specifiedByteBuffercontainer. 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:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<SDL_VirtualJoystickDesc>
-
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
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
Sets the specified value to theUpdatefield. -
SetPlayerIndex
public SDL_VirtualJoystickDesc SetPlayerIndex(@Nullable SDL_VirtualJoystickDescSetPlayerIndexCallbackI value) Sets the specified value to theSetPlayerIndexfield. -
Rumble
Sets the specified value to theRumblefield. -
RumbleTriggers
public SDL_VirtualJoystickDesc RumbleTriggers(@Nullable SDL_VirtualJoystickDescRumbleTriggersCallbackI value) Sets the specified value to theRumbleTriggersfield. -
SetLED
Sets the specified value to theSetLEDfield. -
SendEffect
public SDL_VirtualJoystickDesc SendEffect(@Nullable SDL_VirtualJoystickDescSendEffectCallbackI value) Sets the specified value to theSendEffectfield. -
SetSensorsEnabled
public SDL_VirtualJoystickDesc SetSensorsEnabled(@Nullable SDL_VirtualJoystickDescSetSensorsEnabledCallbackI value) Sets the specified value to theSetSensorsEnabledfield. -
Cleanup
Sets the specified value to theCleanupfield. -
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_VirtualJoystickDescinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newSDL_VirtualJoystickDescinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newSDL_VirtualJoystickDescinstance allocated withBufferUtils. -
create
Returns a newSDL_VirtualJoystickDescinstance for the specified memory address. -
createSafe
-
malloc
Returns a newSDL_VirtualJoystickDesc.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newSDL_VirtualJoystickDesc.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newSDL_VirtualJoystickDesc.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aSDL_VirtualJoystickDesc.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newSDL_VirtualJoystickDescinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newSDL_VirtualJoystickDescinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newSDL_VirtualJoystickDesc.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newSDL_VirtualJoystickDesc.Bufferinstance allocated on the specifiedMemoryStackand 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 thentouchpadsfield of the specifiedstruct. -
nnsensors
public static void nnsensors(long struct, short value) Sets the specified value to thensensorsfield 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
-