Package org.lwjgl.sdl
Class SDL_Event
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
union SDL_Event {
Uint32 type;
SDL_CommonEvent common;
SDL_DisplayEvent display;
SDL_WindowEvent window;
SDL_KeyboardDeviceEvent kdevice;
SDL_KeyboardEvent key;
SDL_TextEditingEvent edit;
SDL_TextEditingCandidatesEvent edit_candidates;
SDL_TextInputEvent text;
SDL_MouseDeviceEvent mdevice;
SDL_MouseMotionEvent motion;
SDL_MouseButtonEvent button;
SDL_MouseWheelEvent wheel;
SDL_JoyDeviceEvent jdevice;
SDL_JoyAxisEvent jaxis;
SDL_JoyBallEvent jball;
SDL_JoyHatEvent jhat;
SDL_JoyButtonEvent jbutton;
SDL_JoyBatteryEvent jbattery;
SDL_GamepadDeviceEvent gdevice;
SDL_GamepadAxisEvent gaxis;
SDL_GamepadButtonEvent gbutton;
SDL_GamepadTouchpadEvent gtouchpad;
SDL_GamepadSensorEvent gsensor;
SDL_AudioDeviceEvent adevice;
SDL_CameraDeviceEvent cdevice;
SDL_SensorEvent sensor;
SDL_QuitEvent quit;
SDL_UserEvent user;
SDL_TouchFingerEvent tfinger;
SDL_PenProximityEvent pproximity;
SDL_PenTouchEvent ptouch;
SDL_PenMotionEvent pmotion;
SDL_PenButtonEvent pbutton;
SDL_PenAxisEvent paxis;
SDL_RenderEvent render;
SDL_DropEvent drop;
SDL_ClipboardEvent clipboard;
Uint8 padding[128];
}-
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 member offsets.static 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 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_Event(ByteBuffer container) Creates aSDL_Eventinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionadevice()adevice(Consumer<SDL_AudioDeviceEvent> consumer) Passes theadevicefield to the specifiedConsumer.adevice(SDL_AudioDeviceEvent value) Copies the specifiedSDL_AudioDeviceEventto theadevicefield.button()button(Consumer<SDL_MouseButtonEvent> consumer) Passes thebuttonfield to the specifiedConsumer.button(SDL_MouseButtonEvent value) Copies the specifiedSDL_MouseButtonEventto thebuttonfield.static SDL_Eventcalloc()Returns a newSDL_Eventinstance allocated withmemCalloc.static SDL_Event.Buffercalloc(int capacity) Returns a newSDL_Event.Bufferinstance allocated withmemCalloc.static SDL_Event.Buffercalloc(int capacity, MemoryStack stack) Returns a newSDL_Event.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SDL_Eventcalloc(MemoryStack stack) Returns a newSDL_Eventinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.cdevice()cdevice(Consumer<SDL_CameraDeviceEvent> consumer) Passes thecdevicefield to the specifiedConsumer.cdevice(SDL_CameraDeviceEvent value) Copies the specifiedSDL_CameraDeviceEventto thecdevicefield.clipboard(Consumer<SDL_ClipboardEvent> consumer) Passes theclipboardfield to the specifiedConsumer.clipboard(SDL_ClipboardEvent value) Copies the specifiedSDL_ClipboardEventto theclipboardfield.common()common(Consumer<SDL_CommonEvent> consumer) Passes thecommonfield to the specifiedConsumer.common(SDL_CommonEvent value) Copies the specifiedSDL_CommonEventto thecommonfield.static SDL_Eventcreate()Returns a newSDL_Eventinstance allocated withBufferUtils.static SDL_Event.Buffercreate(int capacity) Returns a newSDL_Event.Bufferinstance allocated withBufferUtils.static SDL_Eventcreate(long address) Returns a newSDL_Eventinstance for the specified memory address.static SDL_Event.Buffercreate(long address, int capacity) Create aSDL_Event.Bufferinstance at the specified memory.static @Nullable SDL_EventcreateSafe(long address) static @Nullable SDL_Event.BuffercreateSafe(long address, int capacity) display()display(Consumer<SDL_DisplayEvent> consumer) Passes thedisplayfield to the specifiedConsumer.display(SDL_DisplayEvent value) Copies the specifiedSDL_DisplayEventto thedisplayfield.drop()drop(Consumer<SDL_DropEvent> consumer) Passes thedropfield to the specifiedConsumer.drop(SDL_DropEvent value) Copies the specifiedSDL_DropEventto thedropfield.edit()edit(Consumer<SDL_TextEditingEvent> consumer) Passes theeditfield to the specifiedConsumer.edit(SDL_TextEditingEvent value) Copies the specifiedSDL_TextEditingEventto theeditfield.Passes theedit_candidatesfield to the specifiedConsumer.Copies the specifiedSDL_TextEditingCandidatesEventto theedit_candidatesfield.gaxis()gaxis(Consumer<SDL_GamepadAxisEvent> consumer) Passes thegaxisfield to the specifiedConsumer.gaxis(SDL_GamepadAxisEvent value) Copies the specifiedSDL_GamepadAxisEventto thegaxisfield.gbutton()gbutton(Consumer<SDL_GamepadButtonEvent> consumer) Passes thegbuttonfield to the specifiedConsumer.gbutton(SDL_GamepadButtonEvent value) Copies the specifiedSDL_GamepadButtonEventto thegbuttonfield.gdevice()gdevice(Consumer<SDL_GamepadDeviceEvent> consumer) Passes thegdevicefield to the specifiedConsumer.gdevice(SDL_GamepadDeviceEvent value) Copies the specifiedSDL_GamepadDeviceEventto thegdevicefield.gsensor()gsensor(Consumer<SDL_GamepadSensorEvent> consumer) Passes thegsensorfield to the specifiedConsumer.gsensor(SDL_GamepadSensorEvent value) Copies the specifiedSDL_GamepadSensorEventto thegsensorfield.gtouchpad(Consumer<SDL_GamepadTouchpadEvent> consumer) Passes thegtouchpadfield to the specifiedConsumer.Copies the specifiedSDL_GamepadTouchpadEventto thegtouchpadfield.jaxis()jaxis(Consumer<SDL_JoyAxisEvent> consumer) Passes thejaxisfield to the specifiedConsumer.jaxis(SDL_JoyAxisEvent value) Copies the specifiedSDL_JoyAxisEventto thejaxisfield.jball()jball(Consumer<SDL_JoyBallEvent> consumer) Passes thejballfield to the specifiedConsumer.jball(SDL_JoyBallEvent value) Copies the specifiedSDL_JoyBallEventto thejballfield.jbattery()jbattery(Consumer<SDL_JoyBatteryEvent> consumer) Passes thejbatteryfield to the specifiedConsumer.jbattery(SDL_JoyBatteryEvent value) Copies the specifiedSDL_JoyBatteryEventto thejbatteryfield.jbutton()jbutton(Consumer<SDL_JoyButtonEvent> consumer) Passes thejbuttonfield to the specifiedConsumer.jbutton(SDL_JoyButtonEvent value) Copies the specifiedSDL_JoyButtonEventto thejbuttonfield.jdevice()jdevice(Consumer<SDL_JoyDeviceEvent> consumer) Passes thejdevicefield to the specifiedConsumer.jdevice(SDL_JoyDeviceEvent value) Copies the specifiedSDL_JoyDeviceEventto thejdevicefield.jhat()jhat(Consumer<SDL_JoyHatEvent> consumer) Passes thejhatfield to the specifiedConsumer.jhat(SDL_JoyHatEvent value) Copies the specifiedSDL_JoyHatEventto thejhatfield.kdevice()kdevice(Consumer<SDL_KeyboardDeviceEvent> consumer) Passes thekdevicefield to the specifiedConsumer.kdevice(SDL_KeyboardDeviceEvent value) Copies the specifiedSDL_KeyboardDeviceEventto thekdevicefield.key()key(Consumer<SDL_KeyboardEvent> consumer) Passes thekeyfield to the specifiedConsumer.key(SDL_KeyboardEvent value) Copies the specifiedSDL_KeyboardEventto thekeyfield.static SDL_Eventmalloc()Returns a newSDL_Eventinstance allocated withmemAlloc.static SDL_Event.Buffermalloc(int capacity) Returns a newSDL_Event.Bufferinstance allocated withmemAlloc.static SDL_Event.Buffermalloc(int capacity, MemoryStack stack) Returns a newSDL_Event.Bufferinstance allocated on the specifiedMemoryStack.static SDL_Eventmalloc(MemoryStack stack) Returns a newSDL_Eventinstance allocated on the specifiedMemoryStack.mdevice()mdevice(Consumer<SDL_MouseDeviceEvent> consumer) Passes themdevicefield to the specifiedConsumer.mdevice(SDL_MouseDeviceEvent value) Copies the specifiedSDL_MouseDeviceEventto themdevicefield.motion()motion(Consumer<SDL_MouseMotionEvent> consumer) Passes themotionfield to the specifiedConsumer.motion(SDL_MouseMotionEvent value) Copies the specifiedSDL_MouseMotionEventto themotionfield.static SDL_AudioDeviceEventnadevice(long struct) Unsafe version ofadevice().static voidnadevice(long struct, SDL_AudioDeviceEvent value) Unsafe version ofadevice.static SDL_MouseButtonEventnbutton(long struct) Unsafe version ofbutton().static voidnbutton(long struct, SDL_MouseButtonEvent value) Unsafe version ofbutton.static SDL_CameraDeviceEventncdevice(long struct) Unsafe version ofcdevice().static voidncdevice(long struct, SDL_CameraDeviceEvent value) Unsafe version ofcdevice.static SDL_ClipboardEventnclipboard(long struct) Unsafe version ofclipboard().static voidnclipboard(long struct, SDL_ClipboardEvent value) Unsafe version ofclipboard.static SDL_CommonEventncommon(long struct) Unsafe version ofcommon().static voidncommon(long struct, SDL_CommonEvent value) Unsafe version ofcommon.static SDL_DisplayEventndisplay(long struct) Unsafe version ofdisplay().static voidndisplay(long struct, SDL_DisplayEvent value) Unsafe version ofdisplay.static SDL_DropEventndrop(long struct) Unsafe version ofdrop().static voidndrop(long struct, SDL_DropEvent value) Unsafe version ofdrop.static SDL_TextEditingEventnedit(long struct) Unsafe version ofedit().static voidnedit(long struct, SDL_TextEditingEvent value) Unsafe version ofedit.nedit_candidates(long struct) Unsafe version ofedit_candidates().static voidnedit_candidates(long struct, SDL_TextEditingCandidatesEvent value) Unsafe version ofedit_candidates.static SDL_GamepadAxisEventngaxis(long struct) Unsafe version ofgaxis().static voidngaxis(long struct, SDL_GamepadAxisEvent value) Unsafe version ofgaxis.static SDL_GamepadButtonEventngbutton(long struct) Unsafe version ofgbutton().static voidngbutton(long struct, SDL_GamepadButtonEvent value) Unsafe version ofgbutton.static SDL_GamepadDeviceEventngdevice(long struct) Unsafe version ofgdevice().static voidngdevice(long struct, SDL_GamepadDeviceEvent value) Unsafe version ofgdevice.static SDL_GamepadSensorEventngsensor(long struct) Unsafe version ofgsensor().static voidngsensor(long struct, SDL_GamepadSensorEvent value) Unsafe version ofgsensor.static SDL_GamepadTouchpadEventngtouchpad(long struct) Unsafe version ofgtouchpad().static voidngtouchpad(long struct, SDL_GamepadTouchpadEvent value) Unsafe version ofgtouchpad.static SDL_JoyAxisEventnjaxis(long struct) Unsafe version ofjaxis().static voidnjaxis(long struct, SDL_JoyAxisEvent value) Unsafe version ofjaxis.static SDL_JoyBallEventnjball(long struct) Unsafe version ofjball().static voidnjball(long struct, SDL_JoyBallEvent value) Unsafe version ofjball.static SDL_JoyBatteryEventnjbattery(long struct) Unsafe version ofjbattery().static voidnjbattery(long struct, SDL_JoyBatteryEvent value) Unsafe version ofjbattery.static SDL_JoyButtonEventnjbutton(long struct) Unsafe version ofjbutton().static voidnjbutton(long struct, SDL_JoyButtonEvent value) Unsafe version ofjbutton.static SDL_JoyDeviceEventnjdevice(long struct) Unsafe version ofjdevice().static voidnjdevice(long struct, SDL_JoyDeviceEvent value) Unsafe version ofjdevice.static SDL_JoyHatEventnjhat(long struct) Unsafe version ofjhat().static voidnjhat(long struct, SDL_JoyHatEvent value) Unsafe version ofjhat.static SDL_KeyboardDeviceEventnkdevice(long struct) Unsafe version ofkdevice().static voidnkdevice(long struct, SDL_KeyboardDeviceEvent value) Unsafe version ofkdevice.static SDL_KeyboardEventnkey(long struct) Unsafe version ofkey().static voidnkey(long struct, SDL_KeyboardEvent value) Unsafe version ofkey.static SDL_MouseDeviceEventnmdevice(long struct) Unsafe version ofmdevice().static voidnmdevice(long struct, SDL_MouseDeviceEvent value) Unsafe version ofmdevice.static SDL_MouseMotionEventnmotion(long struct) Unsafe version ofmotion().static voidnmotion(long struct, SDL_MouseMotionEvent value) Unsafe version ofmotion.static ByteBuffernpadding(long struct) static bytenpadding(long struct, int index) static voidnpadding(long struct, int index, byte value) static voidnpadding(long struct, ByteBuffer value) static SDL_PenAxisEventnpaxis(long struct) Unsafe version ofpaxis().static voidnpaxis(long struct, SDL_PenAxisEvent value) Unsafe version ofpaxis.static SDL_PenButtonEventnpbutton(long struct) Unsafe version ofpbutton().static voidnpbutton(long struct, SDL_PenButtonEvent value) Unsafe version ofpbutton.static SDL_PenMotionEventnpmotion(long struct) Unsafe version ofpmotion().static voidnpmotion(long struct, SDL_PenMotionEvent value) Unsafe version ofpmotion.static SDL_PenProximityEventnpproximity(long struct) Unsafe version ofpproximity().static voidnpproximity(long struct, SDL_PenProximityEvent value) Unsafe version ofpproximity.static SDL_PenTouchEventnptouch(long struct) Unsafe version ofptouch().static voidnptouch(long struct, SDL_PenTouchEvent value) Unsafe version ofptouch.static SDL_QuitEventnquit(long struct) Unsafe version ofquit().static voidnquit(long struct, SDL_QuitEvent value) Unsafe version ofquit.static SDL_RenderEventnrender(long struct) Unsafe version ofrender().static voidnrender(long struct, SDL_RenderEvent value) Unsafe version ofrender.static SDL_SensorEventnsensor(long struct) Unsafe version ofsensor().static voidnsensor(long struct, SDL_SensorEvent value) Unsafe version ofsensor.static SDL_TextInputEventntext(long struct) Unsafe version oftext().static voidntext(long struct, SDL_TextInputEvent value) Unsafe version oftext.static SDL_TouchFingerEventntfinger(long struct) Unsafe version oftfinger().static voidntfinger(long struct, SDL_TouchFingerEvent value) Unsafe version oftfinger.static intntype(long struct) Unsafe version oftype().static voidntype(long struct, int value) Unsafe version oftype.static SDL_UserEventnuser(long struct) Unsafe version ofuser().static voidnuser(long struct, SDL_UserEvent value) Unsafe version ofuser.static SDL_MouseWheelEventnwheel(long struct) Unsafe version ofwheel().static voidnwheel(long struct, SDL_MouseWheelEvent value) Unsafe version ofwheel.static SDL_WindowEventnwindow(long struct) Unsafe version ofwindow().static voidnwindow(long struct, SDL_WindowEvent value) Unsafe version ofwindow.paxis()paxis(Consumer<SDL_PenAxisEvent> consumer) Passes thepaxisfield to the specifiedConsumer.paxis(SDL_PenAxisEvent value) Copies the specifiedSDL_PenAxisEventto thepaxisfield.pbutton()pbutton(Consumer<SDL_PenButtonEvent> consumer) Passes thepbuttonfield to the specifiedConsumer.pbutton(SDL_PenButtonEvent value) Copies the specifiedSDL_PenButtonEventto thepbuttonfield.pmotion()pmotion(Consumer<SDL_PenMotionEvent> consumer) Passes thepmotionfield to the specifiedConsumer.pmotion(SDL_PenMotionEvent value) Copies the specifiedSDL_PenMotionEventto thepmotionfield.pproximity(Consumer<SDL_PenProximityEvent> consumer) Passes thepproximityfield to the specifiedConsumer.pproximity(SDL_PenProximityEvent value) Copies the specifiedSDL_PenProximityEventto thepproximityfield.ptouch()ptouch(Consumer<SDL_PenTouchEvent> consumer) Passes theptouchfield to the specifiedConsumer.ptouch(SDL_PenTouchEvent value) Copies the specifiedSDL_PenTouchEventto theptouchfield.quit()quit(Consumer<SDL_QuitEvent> consumer) Passes thequitfield to the specifiedConsumer.quit(SDL_QuitEvent value) Copies the specifiedSDL_QuitEventto thequitfield.render()render(Consumer<SDL_RenderEvent> consumer) Passes therenderfield to the specifiedConsumer.render(SDL_RenderEvent value) Copies the specifiedSDL_RenderEventto therenderfield.sensor()sensor(Consumer<SDL_SensorEvent> consumer) Passes thesensorfield to the specifiedConsumer.sensor(SDL_SensorEvent value) Copies the specifiedSDL_SensorEventto thesensorfield.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).text()text(Consumer<SDL_TextInputEvent> consumer) Passes thetextfield to the specifiedConsumer.text(SDL_TextInputEvent value) Copies the specifiedSDL_TextInputEventto thetextfield.tfinger()tfinger(Consumer<SDL_TouchFingerEvent> consumer) Passes thetfingerfield to the specifiedConsumer.tfinger(SDL_TouchFingerEvent value) Copies the specifiedSDL_TouchFingerEventto thetfingerfield.inttype()type(int value) Sets the specified value to thetypefield.user()user(Consumer<SDL_UserEvent> consumer) Passes theuserfield to the specifiedConsumer.user(SDL_UserEvent value) Copies the specifiedSDL_UserEventto theuserfield.wheel()wheel(Consumer<SDL_MouseWheelEvent> consumer) Passes thewheelfield to the specifiedConsumer.wheel(SDL_MouseWheelEvent value) Copies the specifiedSDL_MouseWheelEventto thewheelfield.window()window(Consumer<SDL_WindowEvent> consumer) Passes thewindowfield to the specifiedConsumer.window(SDL_WindowEvent value) Copies the specifiedSDL_WindowEventto thewindowfield.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. -
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_Eventinstance 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). -
type
public int type()- Returns:
- the value of the
typefield.
-
common
- Returns:
- a
SDL_CommonEventview of thecommonfield.
-
display
- Returns:
- a
SDL_DisplayEventview of thedisplayfield.
-
window
- Returns:
- a
SDL_WindowEventview of thewindowfield.
-
kdevice
- Returns:
- a
SDL_KeyboardDeviceEventview of thekdevicefield.
-
key
- Returns:
- a
SDL_KeyboardEventview of thekeyfield.
-
edit
- Returns:
- a
SDL_TextEditingEventview of theeditfield.
-
edit_candidates
- Returns:
- a
SDL_TextEditingCandidatesEventview of theedit_candidatesfield.
-
text
- Returns:
- a
SDL_TextInputEventview of thetextfield.
-
mdevice
- Returns:
- a
SDL_MouseDeviceEventview of themdevicefield.
-
motion
- Returns:
- a
SDL_MouseMotionEventview of themotionfield.
-
button
- Returns:
- a
SDL_MouseButtonEventview of thebuttonfield.
-
wheel
- Returns:
- a
SDL_MouseWheelEventview of thewheelfield.
-
jdevice
- Returns:
- a
SDL_JoyDeviceEventview of thejdevicefield.
-
jaxis
- Returns:
- a
SDL_JoyAxisEventview of thejaxisfield.
-
jball
- Returns:
- a
SDL_JoyBallEventview of thejballfield.
-
jhat
- Returns:
- a
SDL_JoyHatEventview of thejhatfield.
-
jbutton
- Returns:
- a
SDL_JoyButtonEventview of thejbuttonfield.
-
jbattery
- Returns:
- a
SDL_JoyBatteryEventview of thejbatteryfield.
-
gdevice
- Returns:
- a
SDL_GamepadDeviceEventview of thegdevicefield.
-
gaxis
- Returns:
- a
SDL_GamepadAxisEventview of thegaxisfield.
-
gbutton
- Returns:
- a
SDL_GamepadButtonEventview of thegbuttonfield.
-
gtouchpad
- Returns:
- a
SDL_GamepadTouchpadEventview of thegtouchpadfield.
-
gsensor
- Returns:
- a
SDL_GamepadSensorEventview of thegsensorfield.
-
adevice
- Returns:
- a
SDL_AudioDeviceEventview of theadevicefield.
-
cdevice
- Returns:
- a
SDL_CameraDeviceEventview of thecdevicefield.
-
sensor
- Returns:
- a
SDL_SensorEventview of thesensorfield.
-
quit
- Returns:
- a
SDL_QuitEventview of thequitfield.
-
user
- Returns:
- a
SDL_UserEventview of theuserfield.
-
tfinger
- Returns:
- a
SDL_TouchFingerEventview of thetfingerfield.
-
pproximity
- Returns:
- a
SDL_PenProximityEventview of thepproximityfield.
-
ptouch
- Returns:
- a
SDL_PenTouchEventview of theptouchfield.
-
pmotion
- Returns:
- a
SDL_PenMotionEventview of thepmotionfield.
-
pbutton
- Returns:
- a
SDL_PenButtonEventview of thepbuttonfield.
-
paxis
- Returns:
- a
SDL_PenAxisEventview of thepaxisfield.
-
render
- Returns:
- a
SDL_RenderEventview of therenderfield.
-
drop
- Returns:
- a
SDL_DropEventview of thedropfield.
-
clipboard
- Returns:
- a
SDL_ClipboardEventview of theclipboardfield.
-
type
Sets the specified value to thetypefield. -
common
Copies the specifiedSDL_CommonEventto thecommonfield. -
common
Passes thecommonfield to the specifiedConsumer. -
display
Copies the specifiedSDL_DisplayEventto thedisplayfield. -
display
Passes thedisplayfield to the specifiedConsumer. -
window
Copies the specifiedSDL_WindowEventto thewindowfield. -
window
Passes thewindowfield to the specifiedConsumer. -
kdevice
Copies the specifiedSDL_KeyboardDeviceEventto thekdevicefield. -
kdevice
Passes thekdevicefield to the specifiedConsumer. -
key
Copies the specifiedSDL_KeyboardEventto thekeyfield. -
key
Passes thekeyfield to the specifiedConsumer. -
edit
Copies the specifiedSDL_TextEditingEventto theeditfield. -
edit
Passes theeditfield to the specifiedConsumer. -
edit_candidates
Copies the specifiedSDL_TextEditingCandidatesEventto theedit_candidatesfield. -
edit_candidates
Passes theedit_candidatesfield to the specifiedConsumer. -
text
Copies the specifiedSDL_TextInputEventto thetextfield. -
text
Passes thetextfield to the specifiedConsumer. -
mdevice
Copies the specifiedSDL_MouseDeviceEventto themdevicefield. -
mdevice
Passes themdevicefield to the specifiedConsumer. -
motion
Copies the specifiedSDL_MouseMotionEventto themotionfield. -
motion
Passes themotionfield to the specifiedConsumer. -
button
Copies the specifiedSDL_MouseButtonEventto thebuttonfield. -
button
Passes thebuttonfield to the specifiedConsumer. -
wheel
Copies the specifiedSDL_MouseWheelEventto thewheelfield. -
wheel
Passes thewheelfield to the specifiedConsumer. -
jdevice
Copies the specifiedSDL_JoyDeviceEventto thejdevicefield. -
jdevice
Passes thejdevicefield to the specifiedConsumer. -
jaxis
Copies the specifiedSDL_JoyAxisEventto thejaxisfield. -
jaxis
Passes thejaxisfield to the specifiedConsumer. -
jball
Copies the specifiedSDL_JoyBallEventto thejballfield. -
jball
Passes thejballfield to the specifiedConsumer. -
jhat
Copies the specifiedSDL_JoyHatEventto thejhatfield. -
jhat
Passes thejhatfield to the specifiedConsumer. -
jbutton
Copies the specifiedSDL_JoyButtonEventto thejbuttonfield. -
jbutton
Passes thejbuttonfield to the specifiedConsumer. -
jbattery
Copies the specifiedSDL_JoyBatteryEventto thejbatteryfield. -
jbattery
Passes thejbatteryfield to the specifiedConsumer. -
gdevice
Copies the specifiedSDL_GamepadDeviceEventto thegdevicefield. -
gdevice
Passes thegdevicefield to the specifiedConsumer. -
gaxis
Copies the specifiedSDL_GamepadAxisEventto thegaxisfield. -
gaxis
Passes thegaxisfield to the specifiedConsumer. -
gbutton
Copies the specifiedSDL_GamepadButtonEventto thegbuttonfield. -
gbutton
Passes thegbuttonfield to the specifiedConsumer. -
gtouchpad
Copies the specifiedSDL_GamepadTouchpadEventto thegtouchpadfield. -
gtouchpad
Passes thegtouchpadfield to the specifiedConsumer. -
gsensor
Copies the specifiedSDL_GamepadSensorEventto thegsensorfield. -
gsensor
Passes thegsensorfield to the specifiedConsumer. -
adevice
Copies the specifiedSDL_AudioDeviceEventto theadevicefield. -
adevice
Passes theadevicefield to the specifiedConsumer. -
cdevice
Copies the specifiedSDL_CameraDeviceEventto thecdevicefield. -
cdevice
Passes thecdevicefield to the specifiedConsumer. -
sensor
Copies the specifiedSDL_SensorEventto thesensorfield. -
sensor
Passes thesensorfield to the specifiedConsumer. -
quit
Copies the specifiedSDL_QuitEventto thequitfield. -
quit
Passes thequitfield to the specifiedConsumer. -
user
Copies the specifiedSDL_UserEventto theuserfield. -
user
Passes theuserfield to the specifiedConsumer. -
tfinger
Copies the specifiedSDL_TouchFingerEventto thetfingerfield. -
tfinger
Passes thetfingerfield to the specifiedConsumer. -
pproximity
Copies the specifiedSDL_PenProximityEventto thepproximityfield. -
pproximity
Passes thepproximityfield to the specifiedConsumer. -
ptouch
Copies the specifiedSDL_PenTouchEventto theptouchfield. -
ptouch
Passes theptouchfield to the specifiedConsumer. -
pmotion
Copies the specifiedSDL_PenMotionEventto thepmotionfield. -
pmotion
Passes thepmotionfield to the specifiedConsumer. -
pbutton
Copies the specifiedSDL_PenButtonEventto thepbuttonfield. -
pbutton
Passes thepbuttonfield to the specifiedConsumer. -
paxis
Copies the specifiedSDL_PenAxisEventto thepaxisfield. -
paxis
Passes thepaxisfield to the specifiedConsumer. -
render
Copies the specifiedSDL_RenderEventto therenderfield. -
render
Passes therenderfield to the specifiedConsumer. -
drop
Copies the specifiedSDL_DropEventto thedropfield. -
drop
Passes thedropfield to the specifiedConsumer. -
clipboard
Copies the specifiedSDL_ClipboardEventto theclipboardfield. -
clipboard
Passes theclipboardfield to the specifiedConsumer. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newSDL_Eventinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newSDL_Eventinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newSDL_Eventinstance allocated withBufferUtils. -
create
Returns a newSDL_Eventinstance for the specified memory address. -
createSafe
-
malloc
Returns a newSDL_Event.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newSDL_Event.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newSDL_Event.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aSDL_Event.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newSDL_Eventinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newSDL_Eventinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newSDL_Event.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newSDL_Event.Bufferinstance allocated on the specifiedMemoryStackand 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)
-