#[repr(C)]pub struct retro_controller_description {
pub desc: *const c_char,
pub id: c_uint,
}
Fields§
§desc: *const c_char
Human-readable description of the controller. Even if using a generic input device type, this can be set to the particular device type the core uses.
id: c_uint
Device type passed to retro_set_controller_port_device(). If the device type is a sub-class of a generic input device type, use the RETRO_DEVICE_SUBCLASS macro to create an ID.
E.g. RETRO_DEVICE_SUBCLASS(RETRO_DEVICE_JOYPAD, 1).
Trait Implementations§
Source§impl Clone for retro_controller_description
impl Clone for retro_controller_description
Source§fn clone(&self) -> retro_controller_description
fn clone(&self) -> retro_controller_description
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for retro_controller_description
impl Debug for retro_controller_description
impl Copy for retro_controller_description
Auto Trait Implementations§
impl Freeze for retro_controller_description
impl RefUnwindSafe for retro_controller_description
impl !Send for retro_controller_description
impl !Sync for retro_controller_description
impl Unpin for retro_controller_description
impl UnwindSafe for retro_controller_description
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