pub struct GamepadEvent { /* private fields */ }Expand description
Event representing a change in gamepad connection state
Implementations§
Source§impl GamepadEvent
impl GamepadEvent
Sourcepub fn new(
lib: Arc<Library>,
index: u32,
ty: GamepadEventType,
) -> Result<GamepadEvent, CreationError>
pub fn new( lib: Arc<Library>, index: u32, ty: GamepadEventType, ) -> Result<GamepadEvent, CreationError>
Create a new GamepadEvent.
§Arguments
lib- The ultralight library.index- The index of the gamepad, this should match the value previously set inRenderer::set_gamepad_details.ty- The type of this GamepadEvent.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GamepadEvent
impl RefUnwindSafe for GamepadEvent
impl !Send for GamepadEvent
impl !Sync for GamepadEvent
impl Unpin for GamepadEvent
impl UnwindSafe for GamepadEvent
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