#[repr(C)]
pub union SDL_Event {
Show 31 fields
pub type_: SDL_EventType,
pub common: SDL_CommonEvent,
pub display: SDL_DisplayEvent,
pub window: SDL_WindowEvent,
pub key: SDL_KeyboardEvent,
pub edit: SDL_TextEditingEvent,
pub text: SDL_TextInputEvent,
pub motion: SDL_MouseMotionEvent,
pub button: SDL_MouseButtonEvent,
pub wheel: SDL_MouseWheelEvent,
pub jaxis: SDL_JoyAxisEvent,
pub jball: SDL_JoyBallEvent,
pub jhat: SDL_JoyHatEvent,
pub jbutton: SDL_JoyButtonEvent,
pub jdevice: SDL_JoyDeviceEvent,
pub caxis: SDL_ControllerAxisEvent,
pub cbutton: SDL_ControllerButtonEvent,
pub cdevice: SDL_ControllerDeviceEvent,
pub ctouchpad: SDL_ControllerTouchpadEvent,
pub csensor: SDL_ControllerSensorEvent,
pub adevice: SDL_AudioDeviceEvent,
pub sensor: SDL_SensorEvent,
pub quit: SDL_QuitEvent,
pub user: SDL_UserEvent,
pub syswm: SDL_SysWMEvent,
pub tfinger: SDL_TouchFingerEvent,
pub mgesture: SDL_MultiGestureEvent,
pub dgesture: SDL_DollarGestureEvent,
pub drop: SDL_DropEvent,
pub padding: [u8; 56],
pub force_align: [u64; 7],
}
Expand description
General event structure
Fields§
§type_:SDL_EventType
§
common:SDL_CommonEvent
§
display:SDL_DisplayEvent
§
window:SDL_WindowEvent
§
key:SDL_KeyboardEvent
§
edit:SDL_TextEditingEvent
§
text:SDL_TextInputEvent
§
motion:SDL_MouseMotionEvent
§
wheel:SDL_MouseWheelEvent
§
jaxis:SDL_JoyAxisEvent
§
jball:SDL_JoyBallEvent
§
jhat:SDL_JoyHatEvent
§
jdevice:SDL_JoyDeviceEvent
§
caxis:SDL_ControllerAxisEvent
§
cdevice:SDL_ControllerDeviceEvent
§
ctouchpad:SDL_ControllerTouchpadEvent
§
csensor:SDL_ControllerSensorEvent
§
adevice:SDL_AudioDeviceEvent
§
sensor:SDL_SensorEvent
§
quit:SDL_QuitEvent
§
user:SDL_UserEvent
§
syswm:SDL_SysWMEvent
§
tfinger:SDL_TouchFingerEvent
§
mgesture:SDL_MultiGestureEvent
§
dgesture:SDL_DollarGestureEvent
§
drop:SDL_DropEvent
§
padding:[u8; 56]
§
force_align:[u64; 7]
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for SDL_Event
impl !Send for SDL_Event
impl !Sync for SDL_Event
impl Unpin for SDL_Event
impl UnwindSafe for SDL_Event
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more