Union sdl2_sys::SDL_Event
[−]
[src]
#[repr(C)]pub union SDL_Event { pub type_: Uint32, pub common: SDL_CommonEvent, 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 adevice: SDL_AudioDeviceEvent, 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: [Uint8; 56], // some fields omitted }
\brief General event structure
Fields
type_: Uint32
< Event type, shared with all events
common: SDL_CommonEvent
< Common event data
window: SDL_WindowEvent
< Window event data
key: SDL_KeyboardEvent
< Keyboard event data
edit: SDL_TextEditingEvent
< Text editing event data
text: SDL_TextInputEvent
< Text input event data
motion: SDL_MouseMotionEvent
< Mouse motion event data
< Mouse button event data
wheel: SDL_MouseWheelEvent
< Mouse wheel event data
jaxis: SDL_JoyAxisEvent
< Joystick axis event data
jball: SDL_JoyBallEvent
< Joystick ball event data
jhat: SDL_JoyHatEvent
< Joystick hat event data
< Joystick button event data
jdevice: SDL_JoyDeviceEvent
< Joystick device change event data
caxis: SDL_ControllerAxisEvent
< Game Controller axis event data
< Game Controller button event data
cdevice: SDL_ControllerDeviceEvent
< Game Controller device event data
adevice: SDL_AudioDeviceEvent
< Audio device event data
quit: SDL_QuitEvent
< Quit request event data
user: SDL_UserEvent
< Custom event data
syswm: SDL_SysWMEvent
< System dependent window event data
tfinger: SDL_TouchFingerEvent
< Touch finger event data
mgesture: SDL_MultiGestureEvent
< Gesture event data
dgesture: SDL_DollarGestureEvent
< Gesture event data
drop: SDL_DropEvent
< Drag and drop event data
padding: [Uint8; 56]