[−][src]Enum sdl2_sys::SDL_EventType
pub enum SDL_EventType { SDL_FIRSTEVENT, SDL_QUIT, SDL_APP_TERMINATING, SDL_APP_LOWMEMORY, SDL_APP_WILLENTERBACKGROUND, SDL_APP_DIDENTERBACKGROUND, SDL_APP_WILLENTERFOREGROUND, SDL_APP_DIDENTERFOREGROUND, SDL_DISPLAYEVENT, SDL_WINDOWEVENT, SDL_SYSWMEVENT, SDL_KEYDOWN, SDL_KEYUP, SDL_TEXTEDITING, SDL_TEXTINPUT, SDL_KEYMAPCHANGED, SDL_MOUSEMOTION, SDL_MOUSEBUTTONDOWN, SDL_MOUSEBUTTONUP, SDL_MOUSEWHEEL, SDL_JOYAXISMOTION, SDL_JOYBALLMOTION, SDL_JOYHATMOTION, SDL_JOYBUTTONDOWN, SDL_JOYBUTTONUP, SDL_JOYDEVICEADDED, SDL_JOYDEVICEREMOVED, SDL_CONTROLLERAXISMOTION, SDL_CONTROLLERBUTTONDOWN, SDL_CONTROLLERBUTTONUP, SDL_CONTROLLERDEVICEADDED, SDL_CONTROLLERDEVICEREMOVED, SDL_CONTROLLERDEVICEREMAPPED, SDL_FINGERDOWN, SDL_FINGERUP, SDL_FINGERMOTION, SDL_DOLLARGESTURE, SDL_DOLLARRECORD, SDL_MULTIGESTURE, SDL_CLIPBOARDUPDATE, SDL_DROPFILE, SDL_DROPTEXT, SDL_DROPBEGIN, SDL_DROPCOMPLETE, SDL_AUDIODEVICEADDED, SDL_AUDIODEVICEREMOVED, SDL_SENSORUPDATE, SDL_RENDER_TARGETS_RESET, SDL_RENDER_DEVICE_RESET, SDL_USEREVENT, SDL_LASTEVENT, }
\brief The types of events that can be delivered.
Variants
< Unused (do not remove)
< User-requested quit
< The application is being terminated by the OS Called on iOS in applicationWillTerminate() Called on Android in onDestroy()
< The application is low on memory, free memory if possible. Called on iOS in applicationDidReceiveMemoryWarning() Called on Android in onLowMemory()
< The application is about to enter the background Called on iOS in applicationWillResignActive() Called on Android in onPause()
< The application did enter the background and may not get CPU for some time Called on iOS in applicationDidEnterBackground() Called on Android in onPause()
< The application is about to enter the foreground Called on iOS in applicationWillEnterForeground() Called on Android in onResume()
< The application is now interactive Called on iOS in applicationDidBecomeActive() Called on Android in onResume()
< Display state change
< Window state change
< System specific event
< Key pressed
< Key released
< Keyboard text editing (composition)
< Keyboard text input
< Keymap changed due to a system event such as an input language or keyboard layout change.
< Mouse moved
< Mouse button pressed
< Mouse button released
< Mouse wheel motion
< Joystick axis motion
< Joystick trackball motion
< Joystick hat position change
< Joystick button pressed
< Joystick button released
< A new joystick has been inserted into the system
< An opened joystick has been removed
< Game controller axis motion
< Game controller button pressed
< Game controller button released
< A new Game controller has been inserted into the system
< An opened Game controller has been removed
< The controller mapping was updated
< The clipboard changed
< The system requests a file open
< text/plain drag-and-drop event
< A new set of drops is beginning (NULL filename)
< Current set of drops is now complete (NULL filename)
< A new audio device is available
< An audio device has been removed.
< A sensor was updated
< The render targets have been reset and their contents need to be updated
< The device has been reset and all textures need to be recreated
Events ::SDL_USEREVENT through ::SDL_LASTEVENT are for your use, and should be allocated with SDL_RegisterEvents()
This last event is only for bounding internal arrays
Trait Implementations
impl Clone for SDL_EventType
[src][+]
impl Copy for SDL_EventType
[src]
impl Debug for SDL_EventType
[src][+]
impl Eq for SDL_EventType
[src]
impl Hash for SDL_EventType
[src][+]
impl PartialEq<SDL_EventType> for SDL_EventType
[src][+]
impl StructuralEq for SDL_EventType
[src]
impl StructuralPartialEq for SDL_EventType
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,