pub struct Code(pub(crate) EvCode);
Expand description
Platform specific event code.
This type represents single gamepads’s element like specific axis or button.
It can’t be directly created, but you can get it from events or using
Gamepad
’s methods button_code
and
axis_code
. If serde-serialize
feature is
enabled, Code
can be serialized and deserialized, but keep in mind that
layout is platform-specific. So it’s not possible to serialize Code
on
Linux and deserialize it on Windows. This also apply to Display
implementation.
Tuple Fields§
§0: EvCode
Implementations§
Trait Implementations§
source§impl PartialEq for Code
impl PartialEq for Code
impl Copy for Code
impl Eq for Code
impl StructuralPartialEq for Code
Auto Trait Implementations§
impl Freeze for Code
impl RefUnwindSafe for Code
impl Send for Code
impl Sync for Code
impl Unpin for Code
impl UnwindSafe for Code
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