pub enum VRGamepadEvent {
Connect(VRGamepadData, VRGamepadState),
Disconnect(u32),
}
Variants§
Connect(VRGamepadData, VRGamepadState)
Indicates that a VRGamepad has been connected. params: name, displa_id, state
Disconnect(u32)
Indicates that a VRGamepad has been disconnected. param: gamepad_id
Trait Implementations§
Source§impl Clone for VRGamepadEvent
impl Clone for VRGamepadEvent
Source§fn clone(&self) -> VRGamepadEvent
fn clone(&self) -> VRGamepadEvent
Returns a copy 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 VRGamepadEvent
impl Debug for VRGamepadEvent
Auto Trait Implementations§
impl Freeze for VRGamepadEvent
impl RefUnwindSafe for VRGamepadEvent
impl Send for VRGamepadEvent
impl Sync for VRGamepadEvent
impl Unpin for VRGamepadEvent
impl UnwindSafe for VRGamepadEvent
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