Package org.lwjgl.sdl
Class SDL_Event
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
union SDL_Event {
Uint32 type;
{@link SDL_CommonEvent SDL_CommonEvent} common;
{@link SDL_DisplayEvent SDL_DisplayEvent} display;
{@link SDL_WindowEvent SDL_WindowEvent} window;
{@link SDL_KeyboardDeviceEvent SDL_KeyboardDeviceEvent} kdevice;
{@link SDL_KeyboardEvent SDL_KeyboardEvent} key;
{@link SDL_TextEditingEvent SDL_TextEditingEvent} edit;
{@link SDL_TextEditingCandidatesEvent SDL_TextEditingCandidatesEvent} edit_candidates;
{@link SDL_TextInputEvent SDL_TextInputEvent} text;
{@link SDL_MouseDeviceEvent SDL_MouseDeviceEvent} mdevice;
{@link SDL_MouseMotionEvent SDL_MouseMotionEvent} motion;
{@link SDL_MouseButtonEvent SDL_MouseButtonEvent} button;
{@link SDL_MouseWheelEvent SDL_MouseWheelEvent} wheel;
{@link SDL_JoyDeviceEvent SDL_JoyDeviceEvent} jdevice;
{@link SDL_JoyAxisEvent SDL_JoyAxisEvent} jaxis;
{@link SDL_JoyBallEvent SDL_JoyBallEvent} jball;
{@link SDL_JoyHatEvent SDL_JoyHatEvent} jhat;
{@link SDL_JoyButtonEvent SDL_JoyButtonEvent} jbutton;
{@link SDL_JoyBatteryEvent SDL_JoyBatteryEvent} jbattery;
{@link SDL_GamepadDeviceEvent SDL_GamepadDeviceEvent} gdevice;
{@link SDL_GamepadAxisEvent SDL_GamepadAxisEvent} gaxis;
{@link SDL_GamepadButtonEvent SDL_GamepadButtonEvent} gbutton;
{@link SDL_GamepadTouchpadEvent SDL_GamepadTouchpadEvent} gtouchpad;
{@link SDL_GamepadSensorEvent SDL_GamepadSensorEvent} gsensor;
{@link SDL_AudioDeviceEvent SDL_AudioDeviceEvent} adevice;
{@link SDL_CameraDeviceEvent SDL_CameraDeviceEvent} cdevice;
{@link SDL_SensorEvent SDL_SensorEvent} sensor;
{@link SDL_QuitEvent SDL_QuitEvent} quit;
{@link SDL_UserEvent SDL_UserEvent} user;
{@link SDL_TouchFingerEvent SDL_TouchFingerEvent} tfinger;
{@link SDL_PenProximityEvent SDL_PenProximityEvent} pproximity;
{@link SDL_PenTouchEvent SDL_PenTouchEvent} ptouch;
{@link SDL_PenMotionEvent SDL_PenMotionEvent} pmotion;
{@link SDL_PenButtonEvent SDL_PenButtonEvent} pbutton;
{@link SDL_PenAxisEvent SDL_PenAxisEvent} paxis;
{@link SDL_RenderEvent SDL_RenderEvent} render;
{@link SDL_DropEvent SDL_DropEvent} drop;
{@link SDL_ClipboardEvent SDL_ClipboardEvent} clipboard;
Uint8 padding[128];
}
-
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 member offsets.static 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 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_Event
(ByteBuffer container) Creates aSDL_Event
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionadevice()
adevice
(Consumer<SDL_AudioDeviceEvent> consumer) Passes theadevice
field to the specifiedConsumer
.adevice
(SDL_AudioDeviceEvent value) Copies the specifiedSDL_AudioDeviceEvent
to theadevice
field.button()
button
(Consumer<SDL_MouseButtonEvent> consumer) Passes thebutton
field to the specifiedConsumer
.button
(SDL_MouseButtonEvent value) Copies the specifiedSDL_MouseButtonEvent
to thebutton
field.static SDL_Event
calloc()
Returns a newSDL_Event
instance allocated withmemCalloc
.static SDL_Event.Buffer
calloc
(int capacity) Returns a newSDL_Event.Buffer
instance allocated withmemCalloc
.static SDL_Event.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newSDL_Event.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static SDL_Event
calloc
(MemoryStack stack) Returns a newSDL_Event
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.cdevice()
cdevice
(Consumer<SDL_CameraDeviceEvent> consumer) Passes thecdevice
field to the specifiedConsumer
.cdevice
(SDL_CameraDeviceEvent value) Copies the specifiedSDL_CameraDeviceEvent
to thecdevice
field.clipboard
(Consumer<SDL_ClipboardEvent> consumer) Passes theclipboard
field to the specifiedConsumer
.clipboard
(SDL_ClipboardEvent value) Copies the specifiedSDL_ClipboardEvent
to theclipboard
field.common()
common
(Consumer<SDL_CommonEvent> consumer) Passes thecommon
field to the specifiedConsumer
.common
(SDL_CommonEvent value) Copies the specifiedSDL_CommonEvent
to thecommon
field.static SDL_Event
create()
Returns a newSDL_Event
instance allocated withBufferUtils
.static SDL_Event.Buffer
create
(int capacity) Returns a newSDL_Event.Buffer
instance allocated withBufferUtils
.static SDL_Event
create
(long address) Returns a newSDL_Event
instance for the specified memory address.static SDL_Event.Buffer
create
(long address, int capacity) Create aSDL_Event.Buffer
instance at the specified memory.static @Nullable SDL_Event
createSafe
(long address) static @Nullable SDL_Event.Buffer
createSafe
(long address, int capacity) display()
display
(Consumer<SDL_DisplayEvent> consumer) Passes thedisplay
field to the specifiedConsumer
.display
(SDL_DisplayEvent value) Copies the specifiedSDL_DisplayEvent
to thedisplay
field.drop()
drop
(Consumer<SDL_DropEvent> consumer) Passes thedrop
field to the specifiedConsumer
.drop
(SDL_DropEvent value) Copies the specifiedSDL_DropEvent
to thedrop
field.edit()
edit
(Consumer<SDL_TextEditingEvent> consumer) Passes theedit
field to the specifiedConsumer
.edit
(SDL_TextEditingEvent value) Copies the specifiedSDL_TextEditingEvent
to theedit
field.Passes theedit_candidates
field to the specifiedConsumer
.Copies the specifiedSDL_TextEditingCandidatesEvent
to theedit_candidates
field.gaxis()
gaxis
(Consumer<SDL_GamepadAxisEvent> consumer) Passes thegaxis
field to the specifiedConsumer
.gaxis
(SDL_GamepadAxisEvent value) Copies the specifiedSDL_GamepadAxisEvent
to thegaxis
field.gbutton()
gbutton
(Consumer<SDL_GamepadButtonEvent> consumer) Passes thegbutton
field to the specifiedConsumer
.gbutton
(SDL_GamepadButtonEvent value) Copies the specifiedSDL_GamepadButtonEvent
to thegbutton
field.gdevice()
gdevice
(Consumer<SDL_GamepadDeviceEvent> consumer) Passes thegdevice
field to the specifiedConsumer
.gdevice
(SDL_GamepadDeviceEvent value) Copies the specifiedSDL_GamepadDeviceEvent
to thegdevice
field.gsensor()
gsensor
(Consumer<SDL_GamepadSensorEvent> consumer) Passes thegsensor
field to the specifiedConsumer
.gsensor
(SDL_GamepadSensorEvent value) Copies the specifiedSDL_GamepadSensorEvent
to thegsensor
field.gtouchpad
(Consumer<SDL_GamepadTouchpadEvent> consumer) Passes thegtouchpad
field to the specifiedConsumer
.Copies the specifiedSDL_GamepadTouchpadEvent
to thegtouchpad
field.jaxis()
jaxis
(Consumer<SDL_JoyAxisEvent> consumer) Passes thejaxis
field to the specifiedConsumer
.jaxis
(SDL_JoyAxisEvent value) Copies the specifiedSDL_JoyAxisEvent
to thejaxis
field.jball()
jball
(Consumer<SDL_JoyBallEvent> consumer) Passes thejball
field to the specifiedConsumer
.jball
(SDL_JoyBallEvent value) Copies the specifiedSDL_JoyBallEvent
to thejball
field.jbattery()
jbattery
(Consumer<SDL_JoyBatteryEvent> consumer) Passes thejbattery
field to the specifiedConsumer
.jbattery
(SDL_JoyBatteryEvent value) Copies the specifiedSDL_JoyBatteryEvent
to thejbattery
field.jbutton()
jbutton
(Consumer<SDL_JoyButtonEvent> consumer) Passes thejbutton
field to the specifiedConsumer
.jbutton
(SDL_JoyButtonEvent value) Copies the specifiedSDL_JoyButtonEvent
to thejbutton
field.jdevice()
jdevice
(Consumer<SDL_JoyDeviceEvent> consumer) Passes thejdevice
field to the specifiedConsumer
.jdevice
(SDL_JoyDeviceEvent value) Copies the specifiedSDL_JoyDeviceEvent
to thejdevice
field.jhat()
jhat
(Consumer<SDL_JoyHatEvent> consumer) Passes thejhat
field to the specifiedConsumer
.jhat
(SDL_JoyHatEvent value) Copies the specifiedSDL_JoyHatEvent
to thejhat
field.kdevice()
kdevice
(Consumer<SDL_KeyboardDeviceEvent> consumer) Passes thekdevice
field to the specifiedConsumer
.kdevice
(SDL_KeyboardDeviceEvent value) Copies the specifiedSDL_KeyboardDeviceEvent
to thekdevice
field.key()
key
(Consumer<SDL_KeyboardEvent> consumer) Passes thekey
field to the specifiedConsumer
.key
(SDL_KeyboardEvent value) Copies the specifiedSDL_KeyboardEvent
to thekey
field.static SDL_Event
malloc()
Returns a newSDL_Event
instance allocated withmemAlloc
.static SDL_Event.Buffer
malloc
(int capacity) Returns a newSDL_Event.Buffer
instance allocated withmemAlloc
.static SDL_Event.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newSDL_Event.Buffer
instance allocated on the specifiedMemoryStack
.static SDL_Event
malloc
(MemoryStack stack) Returns a newSDL_Event
instance allocated on the specifiedMemoryStack
.mdevice()
mdevice
(Consumer<SDL_MouseDeviceEvent> consumer) Passes themdevice
field to the specifiedConsumer
.mdevice
(SDL_MouseDeviceEvent value) Copies the specifiedSDL_MouseDeviceEvent
to themdevice
field.motion()
motion
(Consumer<SDL_MouseMotionEvent> consumer) Passes themotion
field to the specifiedConsumer
.motion
(SDL_MouseMotionEvent value) Copies the specifiedSDL_MouseMotionEvent
to themotion
field.static SDL_AudioDeviceEvent
nadevice
(long struct) Unsafe version ofadevice()
.static void
nadevice
(long struct, SDL_AudioDeviceEvent value) Unsafe version ofadevice
.static SDL_MouseButtonEvent
nbutton
(long struct) Unsafe version ofbutton()
.static void
nbutton
(long struct, SDL_MouseButtonEvent value) Unsafe version ofbutton
.static SDL_CameraDeviceEvent
ncdevice
(long struct) Unsafe version ofcdevice()
.static void
ncdevice
(long struct, SDL_CameraDeviceEvent value) Unsafe version ofcdevice
.static SDL_ClipboardEvent
nclipboard
(long struct) Unsafe version ofclipboard()
.static void
nclipboard
(long struct, SDL_ClipboardEvent value) Unsafe version ofclipboard
.static SDL_CommonEvent
ncommon
(long struct) Unsafe version ofcommon()
.static void
ncommon
(long struct, SDL_CommonEvent value) Unsafe version ofcommon
.static SDL_DisplayEvent
ndisplay
(long struct) Unsafe version ofdisplay()
.static void
ndisplay
(long struct, SDL_DisplayEvent value) Unsafe version ofdisplay
.static SDL_DropEvent
ndrop
(long struct) Unsafe version ofdrop()
.static void
ndrop
(long struct, SDL_DropEvent value) Unsafe version ofdrop
.static SDL_TextEditingEvent
nedit
(long struct) Unsafe version ofedit()
.static void
nedit
(long struct, SDL_TextEditingEvent value) Unsafe version ofedit
.nedit_candidates
(long struct) Unsafe version ofedit_candidates()
.static void
nedit_candidates
(long struct, SDL_TextEditingCandidatesEvent value) Unsafe version ofedit_candidates
.static SDL_GamepadAxisEvent
ngaxis
(long struct) Unsafe version ofgaxis()
.static void
ngaxis
(long struct, SDL_GamepadAxisEvent value) Unsafe version ofgaxis
.static SDL_GamepadButtonEvent
ngbutton
(long struct) Unsafe version ofgbutton()
.static void
ngbutton
(long struct, SDL_GamepadButtonEvent value) Unsafe version ofgbutton
.static SDL_GamepadDeviceEvent
ngdevice
(long struct) Unsafe version ofgdevice()
.static void
ngdevice
(long struct, SDL_GamepadDeviceEvent value) Unsafe version ofgdevice
.static SDL_GamepadSensorEvent
ngsensor
(long struct) Unsafe version ofgsensor()
.static void
ngsensor
(long struct, SDL_GamepadSensorEvent value) Unsafe version ofgsensor
.static SDL_GamepadTouchpadEvent
ngtouchpad
(long struct) Unsafe version ofgtouchpad()
.static void
ngtouchpad
(long struct, SDL_GamepadTouchpadEvent value) Unsafe version ofgtouchpad
.static SDL_JoyAxisEvent
njaxis
(long struct) Unsafe version ofjaxis()
.static void
njaxis
(long struct, SDL_JoyAxisEvent value) Unsafe version ofjaxis
.static SDL_JoyBallEvent
njball
(long struct) Unsafe version ofjball()
.static void
njball
(long struct, SDL_JoyBallEvent value) Unsafe version ofjball
.static SDL_JoyBatteryEvent
njbattery
(long struct) Unsafe version ofjbattery()
.static void
njbattery
(long struct, SDL_JoyBatteryEvent value) Unsafe version ofjbattery
.static SDL_JoyButtonEvent
njbutton
(long struct) Unsafe version ofjbutton()
.static void
njbutton
(long struct, SDL_JoyButtonEvent value) Unsafe version ofjbutton
.static SDL_JoyDeviceEvent
njdevice
(long struct) Unsafe version ofjdevice()
.static void
njdevice
(long struct, SDL_JoyDeviceEvent value) Unsafe version ofjdevice
.static SDL_JoyHatEvent
njhat
(long struct) Unsafe version ofjhat()
.static void
njhat
(long struct, SDL_JoyHatEvent value) Unsafe version ofjhat
.static SDL_KeyboardDeviceEvent
nkdevice
(long struct) Unsafe version ofkdevice()
.static void
nkdevice
(long struct, SDL_KeyboardDeviceEvent value) Unsafe version ofkdevice
.static SDL_KeyboardEvent
nkey
(long struct) Unsafe version ofkey()
.static void
nkey
(long struct, SDL_KeyboardEvent value) Unsafe version ofkey
.static SDL_MouseDeviceEvent
nmdevice
(long struct) Unsafe version ofmdevice()
.static void
nmdevice
(long struct, SDL_MouseDeviceEvent value) Unsafe version ofmdevice
.static SDL_MouseMotionEvent
nmotion
(long struct) Unsafe version ofmotion()
.static void
nmotion
(long struct, SDL_MouseMotionEvent value) Unsafe version ofmotion
.static ByteBuffer
npadding
(long struct) static byte
npadding
(long struct, int index) static void
npadding
(long struct, int index, byte value) static void
npadding
(long struct, ByteBuffer value) static SDL_PenAxisEvent
npaxis
(long struct) Unsafe version ofpaxis()
.static void
npaxis
(long struct, SDL_PenAxisEvent value) Unsafe version ofpaxis
.static SDL_PenButtonEvent
npbutton
(long struct) Unsafe version ofpbutton()
.static void
npbutton
(long struct, SDL_PenButtonEvent value) Unsafe version ofpbutton
.static SDL_PenMotionEvent
npmotion
(long struct) Unsafe version ofpmotion()
.static void
npmotion
(long struct, SDL_PenMotionEvent value) Unsafe version ofpmotion
.static SDL_PenProximityEvent
npproximity
(long struct) Unsafe version ofpproximity()
.static void
npproximity
(long struct, SDL_PenProximityEvent value) Unsafe version ofpproximity
.static SDL_PenTouchEvent
nptouch
(long struct) Unsafe version ofptouch()
.static void
nptouch
(long struct, SDL_PenTouchEvent value) Unsafe version ofptouch
.static SDL_QuitEvent
nquit
(long struct) Unsafe version ofquit()
.static void
nquit
(long struct, SDL_QuitEvent value) Unsafe version ofquit
.static SDL_RenderEvent
nrender
(long struct) Unsafe version ofrender()
.static void
nrender
(long struct, SDL_RenderEvent value) Unsafe version ofrender
.static SDL_SensorEvent
nsensor
(long struct) Unsafe version ofsensor()
.static void
nsensor
(long struct, SDL_SensorEvent value) Unsafe version ofsensor
.static SDL_TextInputEvent
ntext
(long struct) Unsafe version oftext()
.static void
ntext
(long struct, SDL_TextInputEvent value) Unsafe version oftext
.static SDL_TouchFingerEvent
ntfinger
(long struct) Unsafe version oftfinger()
.static void
ntfinger
(long struct, SDL_TouchFingerEvent value) Unsafe version oftfinger
.static int
ntype
(long struct) Unsafe version oftype()
.static void
ntype
(long struct, int value) Unsafe version oftype
.static SDL_UserEvent
nuser
(long struct) Unsafe version ofuser()
.static void
nuser
(long struct, SDL_UserEvent value) Unsafe version ofuser
.static SDL_MouseWheelEvent
nwheel
(long struct) Unsafe version ofwheel()
.static void
nwheel
(long struct, SDL_MouseWheelEvent value) Unsafe version ofwheel
.static SDL_WindowEvent
nwindow
(long struct) Unsafe version ofwindow()
.static void
nwindow
(long struct, SDL_WindowEvent value) Unsafe version ofwindow
.paxis()
paxis
(Consumer<SDL_PenAxisEvent> consumer) Passes thepaxis
field to the specifiedConsumer
.paxis
(SDL_PenAxisEvent value) Copies the specifiedSDL_PenAxisEvent
to thepaxis
field.pbutton()
pbutton
(Consumer<SDL_PenButtonEvent> consumer) Passes thepbutton
field to the specifiedConsumer
.pbutton
(SDL_PenButtonEvent value) Copies the specifiedSDL_PenButtonEvent
to thepbutton
field.pmotion()
pmotion
(Consumer<SDL_PenMotionEvent> consumer) Passes thepmotion
field to the specifiedConsumer
.pmotion
(SDL_PenMotionEvent value) Copies the specifiedSDL_PenMotionEvent
to thepmotion
field.pproximity
(Consumer<SDL_PenProximityEvent> consumer) Passes thepproximity
field to the specifiedConsumer
.pproximity
(SDL_PenProximityEvent value) Copies the specifiedSDL_PenProximityEvent
to thepproximity
field.ptouch()
ptouch
(Consumer<SDL_PenTouchEvent> consumer) Passes theptouch
field to the specifiedConsumer
.ptouch
(SDL_PenTouchEvent value) Copies the specifiedSDL_PenTouchEvent
to theptouch
field.quit()
quit
(Consumer<SDL_QuitEvent> consumer) Passes thequit
field to the specifiedConsumer
.quit
(SDL_QuitEvent value) Copies the specifiedSDL_QuitEvent
to thequit
field.render()
render
(Consumer<SDL_RenderEvent> consumer) Passes therender
field to the specifiedConsumer
.render
(SDL_RenderEvent value) Copies the specifiedSDL_RenderEvent
to therender
field.sensor()
sensor
(Consumer<SDL_SensorEvent> consumer) Passes thesensor
field to the specifiedConsumer
.sensor
(SDL_SensorEvent value) Copies the specifiedSDL_SensorEvent
to thesensor
field.Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.text()
text
(Consumer<SDL_TextInputEvent> consumer) Passes thetext
field to the specifiedConsumer
.text
(SDL_TextInputEvent value) Copies the specifiedSDL_TextInputEvent
to thetext
field.tfinger()
tfinger
(Consumer<SDL_TouchFingerEvent> consumer) Passes thetfinger
field to the specifiedConsumer
.tfinger
(SDL_TouchFingerEvent value) Copies the specifiedSDL_TouchFingerEvent
to thetfinger
field.int
type()
type
(int value) Sets the specified value to thetype
field.user()
user
(Consumer<SDL_UserEvent> consumer) Passes theuser
field to the specifiedConsumer
.user
(SDL_UserEvent value) Copies the specifiedSDL_UserEvent
to theuser
field.wheel()
wheel
(Consumer<SDL_MouseWheelEvent> consumer) Passes thewheel
field to the specifiedConsumer
.wheel
(SDL_MouseWheelEvent value) Copies the specifiedSDL_MouseWheelEvent
to thewheel
field.window()
window
(Consumer<SDL_WindowEvent> consumer) Passes thewindow
field to the specifiedConsumer
.window
(SDL_WindowEvent value) Copies the specifiedSDL_WindowEvent
to thewindow
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. -
TYPE
public static final int TYPEThe struct member offsets. -
COMMON
public static final int COMMONThe struct member offsets. -
DISPLAY
public static final int DISPLAYThe struct member offsets. -
WINDOW
public static final int WINDOWThe struct member offsets. -
KDEVICE
public static final int KDEVICEThe struct member offsets. -
KEY
public static final int KEYThe struct member offsets. -
EDIT
public static final int EDITThe struct member offsets. -
EDIT_CANDIDATES
public static final int EDIT_CANDIDATESThe struct member offsets. -
TEXT
public static final int TEXTThe struct member offsets. -
MDEVICE
public static final int MDEVICEThe struct member offsets. -
MOTION
public static final int MOTIONThe struct member offsets. -
BUTTON
public static final int BUTTONThe struct member offsets. -
WHEEL
public static final int WHEELThe struct member offsets. -
JDEVICE
public static final int JDEVICEThe struct member offsets. -
JAXIS
public static final int JAXISThe struct member offsets. -
JBALL
public static final int JBALLThe struct member offsets. -
JHAT
public static final int JHATThe struct member offsets. -
JBUTTON
public static final int JBUTTONThe struct member offsets. -
JBATTERY
public static final int JBATTERYThe struct member offsets. -
GDEVICE
public static final int GDEVICEThe struct member offsets. -
GAXIS
public static final int GAXISThe struct member offsets. -
GBUTTON
public static final int GBUTTONThe struct member offsets. -
GTOUCHPAD
public static final int GTOUCHPADThe struct member offsets. -
GSENSOR
public static final int GSENSORThe struct member offsets. -
ADEVICE
public static final int ADEVICEThe struct member offsets. -
CDEVICE
public static final int CDEVICEThe struct member offsets. -
SENSOR
public static final int SENSORThe struct member offsets. -
QUIT
public static final int QUITThe struct member offsets. -
USER
public static final int USERThe struct member offsets. -
TFINGER
public static final int TFINGERThe struct member offsets. -
PPROXIMITY
public static final int PPROXIMITYThe struct member offsets. -
PTOUCH
public static final int PTOUCHThe struct member offsets. -
PMOTION
public static final int PMOTIONThe struct member offsets. -
PBUTTON
public static final int PBUTTONThe struct member offsets. -
PAXIS
public static final int PAXISThe struct member offsets. -
RENDER
public static final int RENDERThe struct member offsets. -
DROP
public static final int DROPThe struct member offsets. -
CLIPBOARD
public static final int CLIPBOARDThe struct member offsets. -
PADDING
public static final int PADDINGThe struct member offsets.
-
-
Constructor Details
-
SDL_Event
Creates aSDL_Event
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)
. -
type
public int type()- Returns:
- the value of the
type
field.
-
common
- Returns:
- a
SDL_CommonEvent
view of thecommon
field.
-
display
- Returns:
- a
SDL_DisplayEvent
view of thedisplay
field.
-
window
- Returns:
- a
SDL_WindowEvent
view of thewindow
field.
-
kdevice
- Returns:
- a
SDL_KeyboardDeviceEvent
view of thekdevice
field.
-
key
- Returns:
- a
SDL_KeyboardEvent
view of thekey
field.
-
edit
- Returns:
- a
SDL_TextEditingEvent
view of theedit
field.
-
edit_candidates
- Returns:
- a
SDL_TextEditingCandidatesEvent
view of theedit_candidates
field.
-
text
- Returns:
- a
SDL_TextInputEvent
view of thetext
field.
-
mdevice
- Returns:
- a
SDL_MouseDeviceEvent
view of themdevice
field.
-
motion
- Returns:
- a
SDL_MouseMotionEvent
view of themotion
field.
-
button
- Returns:
- a
SDL_MouseButtonEvent
view of thebutton
field.
-
wheel
- Returns:
- a
SDL_MouseWheelEvent
view of thewheel
field.
-
jdevice
- Returns:
- a
SDL_JoyDeviceEvent
view of thejdevice
field.
-
jaxis
- Returns:
- a
SDL_JoyAxisEvent
view of thejaxis
field.
-
jball
- Returns:
- a
SDL_JoyBallEvent
view of thejball
field.
-
jhat
- Returns:
- a
SDL_JoyHatEvent
view of thejhat
field.
-
jbutton
- Returns:
- a
SDL_JoyButtonEvent
view of thejbutton
field.
-
jbattery
- Returns:
- a
SDL_JoyBatteryEvent
view of thejbattery
field.
-
gdevice
- Returns:
- a
SDL_GamepadDeviceEvent
view of thegdevice
field.
-
gaxis
- Returns:
- a
SDL_GamepadAxisEvent
view of thegaxis
field.
-
gbutton
- Returns:
- a
SDL_GamepadButtonEvent
view of thegbutton
field.
-
gtouchpad
- Returns:
- a
SDL_GamepadTouchpadEvent
view of thegtouchpad
field.
-
gsensor
- Returns:
- a
SDL_GamepadSensorEvent
view of thegsensor
field.
-
adevice
- Returns:
- a
SDL_AudioDeviceEvent
view of theadevice
field.
-
cdevice
- Returns:
- a
SDL_CameraDeviceEvent
view of thecdevice
field.
-
sensor
- Returns:
- a
SDL_SensorEvent
view of thesensor
field.
-
quit
- Returns:
- a
SDL_QuitEvent
view of thequit
field.
-
user
- Returns:
- a
SDL_UserEvent
view of theuser
field.
-
tfinger
- Returns:
- a
SDL_TouchFingerEvent
view of thetfinger
field.
-
pproximity
- Returns:
- a
SDL_PenProximityEvent
view of thepproximity
field.
-
ptouch
- Returns:
- a
SDL_PenTouchEvent
view of theptouch
field.
-
pmotion
- Returns:
- a
SDL_PenMotionEvent
view of thepmotion
field.
-
pbutton
- Returns:
- a
SDL_PenButtonEvent
view of thepbutton
field.
-
paxis
- Returns:
- a
SDL_PenAxisEvent
view of thepaxis
field.
-
render
- Returns:
- a
SDL_RenderEvent
view of therender
field.
-
drop
- Returns:
- a
SDL_DropEvent
view of thedrop
field.
-
clipboard
- Returns:
- a
SDL_ClipboardEvent
view of theclipboard
field.
-
type
Sets the specified value to thetype
field. -
common
Copies the specifiedSDL_CommonEvent
to thecommon
field. -
common
Passes thecommon
field to the specifiedConsumer
. -
display
Copies the specifiedSDL_DisplayEvent
to thedisplay
field. -
display
Passes thedisplay
field to the specifiedConsumer
. -
window
Copies the specifiedSDL_WindowEvent
to thewindow
field. -
window
Passes thewindow
field to the specifiedConsumer
. -
kdevice
Copies the specifiedSDL_KeyboardDeviceEvent
to thekdevice
field. -
kdevice
Passes thekdevice
field to the specifiedConsumer
. -
key
Copies the specifiedSDL_KeyboardEvent
to thekey
field. -
key
Passes thekey
field to the specifiedConsumer
. -
edit
Copies the specifiedSDL_TextEditingEvent
to theedit
field. -
edit
Passes theedit
field to the specifiedConsumer
. -
edit_candidates
Copies the specifiedSDL_TextEditingCandidatesEvent
to theedit_candidates
field. -
edit_candidates
Passes theedit_candidates
field to the specifiedConsumer
. -
text
Copies the specifiedSDL_TextInputEvent
to thetext
field. -
text
Passes thetext
field to the specifiedConsumer
. -
mdevice
Copies the specifiedSDL_MouseDeviceEvent
to themdevice
field. -
mdevice
Passes themdevice
field to the specifiedConsumer
. -
motion
Copies the specifiedSDL_MouseMotionEvent
to themotion
field. -
motion
Passes themotion
field to the specifiedConsumer
. -
button
Copies the specifiedSDL_MouseButtonEvent
to thebutton
field. -
button
Passes thebutton
field to the specifiedConsumer
. -
wheel
Copies the specifiedSDL_MouseWheelEvent
to thewheel
field. -
wheel
Passes thewheel
field to the specifiedConsumer
. -
jdevice
Copies the specifiedSDL_JoyDeviceEvent
to thejdevice
field. -
jdevice
Passes thejdevice
field to the specifiedConsumer
. -
jaxis
Copies the specifiedSDL_JoyAxisEvent
to thejaxis
field. -
jaxis
Passes thejaxis
field to the specifiedConsumer
. -
jball
Copies the specifiedSDL_JoyBallEvent
to thejball
field. -
jball
Passes thejball
field to the specifiedConsumer
. -
jhat
Copies the specifiedSDL_JoyHatEvent
to thejhat
field. -
jhat
Passes thejhat
field to the specifiedConsumer
. -
jbutton
Copies the specifiedSDL_JoyButtonEvent
to thejbutton
field. -
jbutton
Passes thejbutton
field to the specifiedConsumer
. -
jbattery
Copies the specifiedSDL_JoyBatteryEvent
to thejbattery
field. -
jbattery
Passes thejbattery
field to the specifiedConsumer
. -
gdevice
Copies the specifiedSDL_GamepadDeviceEvent
to thegdevice
field. -
gdevice
Passes thegdevice
field to the specifiedConsumer
. -
gaxis
Copies the specifiedSDL_GamepadAxisEvent
to thegaxis
field. -
gaxis
Passes thegaxis
field to the specifiedConsumer
. -
gbutton
Copies the specifiedSDL_GamepadButtonEvent
to thegbutton
field. -
gbutton
Passes thegbutton
field to the specifiedConsumer
. -
gtouchpad
Copies the specifiedSDL_GamepadTouchpadEvent
to thegtouchpad
field. -
gtouchpad
Passes thegtouchpad
field to the specifiedConsumer
. -
gsensor
Copies the specifiedSDL_GamepadSensorEvent
to thegsensor
field. -
gsensor
Passes thegsensor
field to the specifiedConsumer
. -
adevice
Copies the specifiedSDL_AudioDeviceEvent
to theadevice
field. -
adevice
Passes theadevice
field to the specifiedConsumer
. -
cdevice
Copies the specifiedSDL_CameraDeviceEvent
to thecdevice
field. -
cdevice
Passes thecdevice
field to the specifiedConsumer
. -
sensor
Copies the specifiedSDL_SensorEvent
to thesensor
field. -
sensor
Passes thesensor
field to the specifiedConsumer
. -
quit
Copies the specifiedSDL_QuitEvent
to thequit
field. -
quit
Passes thequit
field to the specifiedConsumer
. -
user
Copies the specifiedSDL_UserEvent
to theuser
field. -
user
Passes theuser
field to the specifiedConsumer
. -
tfinger
Copies the specifiedSDL_TouchFingerEvent
to thetfinger
field. -
tfinger
Passes thetfinger
field to the specifiedConsumer
. -
pproximity
Copies the specifiedSDL_PenProximityEvent
to thepproximity
field. -
pproximity
Passes thepproximity
field to the specifiedConsumer
. -
ptouch
Copies the specifiedSDL_PenTouchEvent
to theptouch
field. -
ptouch
Passes theptouch
field to the specifiedConsumer
. -
pmotion
Copies the specifiedSDL_PenMotionEvent
to thepmotion
field. -
pmotion
Passes thepmotion
field to the specifiedConsumer
. -
pbutton
Copies the specifiedSDL_PenButtonEvent
to thepbutton
field. -
pbutton
Passes thepbutton
field to the specifiedConsumer
. -
paxis
Copies the specifiedSDL_PenAxisEvent
to thepaxis
field. -
paxis
Passes thepaxis
field to the specifiedConsumer
. -
render
Copies the specifiedSDL_RenderEvent
to therender
field. -
render
Passes therender
field to the specifiedConsumer
. -
drop
Copies the specifiedSDL_DropEvent
to thedrop
field. -
drop
Passes thedrop
field to the specifiedConsumer
. -
clipboard
Copies the specifiedSDL_ClipboardEvent
to theclipboard
field. -
clipboard
Passes theclipboard
field to the specifiedConsumer
. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newSDL_Event
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newSDL_Event
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newSDL_Event
instance allocated withBufferUtils
. -
create
Returns a newSDL_Event
instance for the specified memory address. -
createSafe
-
malloc
Returns a newSDL_Event.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newSDL_Event.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newSDL_Event.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aSDL_Event.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newSDL_Event
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newSDL_Event
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newSDL_Event.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newSDL_Event.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
ntype
public static int ntype(long struct) Unsafe version oftype()
. -
ncommon
Unsafe version ofcommon()
. -
ndisplay
Unsafe version ofdisplay()
. -
nwindow
Unsafe version ofwindow()
. -
nkdevice
Unsafe version ofkdevice()
. -
nkey
Unsafe version ofkey()
. -
nedit
Unsafe version ofedit()
. -
nedit_candidates
Unsafe version ofedit_candidates()
. -
ntext
Unsafe version oftext()
. -
nmdevice
Unsafe version ofmdevice()
. -
nmotion
Unsafe version ofmotion()
. -
nbutton
Unsafe version ofbutton()
. -
nwheel
Unsafe version ofwheel()
. -
njdevice
Unsafe version ofjdevice()
. -
njaxis
Unsafe version ofjaxis()
. -
njball
Unsafe version ofjball()
. -
njhat
Unsafe version ofjhat()
. -
njbutton
Unsafe version ofjbutton()
. -
njbattery
Unsafe version ofjbattery()
. -
ngdevice
Unsafe version ofgdevice()
. -
ngaxis
Unsafe version ofgaxis()
. -
ngbutton
Unsafe version ofgbutton()
. -
ngtouchpad
Unsafe version ofgtouchpad()
. -
ngsensor
Unsafe version ofgsensor()
. -
nadevice
Unsafe version ofadevice()
. -
ncdevice
Unsafe version ofcdevice()
. -
nsensor
Unsafe version ofsensor()
. -
nquit
Unsafe version ofquit()
. -
nuser
Unsafe version ofuser()
. -
ntfinger
Unsafe version oftfinger()
. -
npproximity
Unsafe version ofpproximity()
. -
nptouch
Unsafe version ofptouch()
. -
npmotion
Unsafe version ofpmotion()
. -
npbutton
Unsafe version ofpbutton()
. -
npaxis
Unsafe version ofpaxis()
. -
nrender
Unsafe version ofrender()
. -
ndrop
Unsafe version ofdrop()
. -
nclipboard
Unsafe version ofclipboard()
. -
npadding
-
npadding
public static byte npadding(long struct, int index) -
ntype
public static void ntype(long struct, int value) Unsafe version oftype
. -
ncommon
Unsafe version ofcommon
. -
ndisplay
Unsafe version ofdisplay
. -
nwindow
Unsafe version ofwindow
. -
nkdevice
Unsafe version ofkdevice
. -
nkey
Unsafe version ofkey
. -
nedit
Unsafe version ofedit
. -
nedit_candidates
Unsafe version ofedit_candidates
. -
ntext
Unsafe version oftext
. -
nmdevice
Unsafe version ofmdevice
. -
nmotion
Unsafe version ofmotion
. -
nbutton
Unsafe version ofbutton
. -
nwheel
Unsafe version ofwheel
. -
njdevice
Unsafe version ofjdevice
. -
njaxis
Unsafe version ofjaxis
. -
njball
Unsafe version ofjball
. -
njhat
Unsafe version ofjhat
. -
njbutton
Unsafe version ofjbutton
. -
njbattery
Unsafe version ofjbattery
. -
ngdevice
Unsafe version ofgdevice
. -
ngaxis
Unsafe version ofgaxis
. -
ngbutton
Unsafe version ofgbutton
. -
ngtouchpad
Unsafe version ofgtouchpad
. -
ngsensor
Unsafe version ofgsensor
. -
nadevice
Unsafe version ofadevice
. -
ncdevice
Unsafe version ofcdevice
. -
nsensor
Unsafe version ofsensor
. -
nquit
Unsafe version ofquit
. -
nuser
Unsafe version ofuser
. -
ntfinger
Unsafe version oftfinger
. -
npproximity
Unsafe version ofpproximity
. -
nptouch
Unsafe version ofptouch
. -
npmotion
Unsafe version ofpmotion
. -
npbutton
Unsafe version ofpbutton
. -
npaxis
Unsafe version ofpaxis
. -
nrender
Unsafe version ofrender
. -
ndrop
Unsafe version ofdrop
. -
nclipboard
Unsafe version ofclipboard
. -
npadding
-
npadding
public static void npadding(long struct, int index, byte value)
-