#[repr(C)]pub struct SDL_KeyboardDeviceEvent {
pub type_: SDL_EventType,
pub reserved: Uint32,
pub timestamp: Uint64,
pub which: SDL_KeyboardID,
}Expand description
Keyboard device event structure (event.kdevice.*)
Available Since: This struct is available since SDL 3.2.0.
Fields§
§type_: SDL_EventType< SDL_EVENT_KEYBOARD_ADDED or SDL_EVENT_KEYBOARD_REMOVED
reserved: Uint32§timestamp: Uint64< In nanoseconds, populated using SDL_GetTicksNS()
which: SDL_KeyboardID< The keyboard instance id
Trait Implementations§
Source§impl Clone for SDL_KeyboardDeviceEvent
impl Clone for SDL_KeyboardDeviceEvent
Source§fn clone(&self) -> SDL_KeyboardDeviceEvent
fn clone(&self) -> SDL_KeyboardDeviceEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SDL_KeyboardDeviceEvent
impl Debug for SDL_KeyboardDeviceEvent
Source§impl Default for SDL_KeyboardDeviceEvent
impl Default for SDL_KeyboardDeviceEvent
Source§impl Hash for SDL_KeyboardDeviceEvent
impl Hash for SDL_KeyboardDeviceEvent
impl Copy for SDL_KeyboardDeviceEvent
Auto Trait Implementations§
impl Freeze for SDL_KeyboardDeviceEvent
impl RefUnwindSafe for SDL_KeyboardDeviceEvent
impl Send for SDL_KeyboardDeviceEvent
impl Sync for SDL_KeyboardDeviceEvent
impl Unpin for SDL_KeyboardDeviceEvent
impl UnsafeUnpin for SDL_KeyboardDeviceEvent
impl UnwindSafe for SDL_KeyboardDeviceEvent
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